search

Home  >  Q&A  >  body text

What's going on when undefined appears? Please help.

捕获.PNG

新新新新生新新新新生2283 days ago4391

reply all(8)I'll reply

  • P粉250913671

    P粉2509136712022-12-02 22:10:55

    The user's real-name information filled in is the only proof for prize redemption. If the real-name information filled in is incorrect due to personal reasons and the prize cannot be redeemed, all losses will be borne by the user.

    reply
    0
  • 谢建华

    谢建华2019-01-15 11:41:28

    Mine is the same. Later I found that the teacher’s data.message was written incorrectly in the ajax at the front desk. It should be data.result. After I changed this, it became normal.

    reply
    0
  • Summer

    Summer2018-11-02 09:54:49

    It should be that the js code variable is not defined

    reply
    0
  • 新新新新生

    新新新新生2018-11-01 19:18:54

    public function checkLogin(Request $request)

    {

    //Initial return parameters

    $status =0;

    $result =' ';

              $data = $request ->param();


    ##                                                     use using ‐                   through using ’’s ’ through     ‐     ‐ ‐ ‐ // $rule =[

                                                                                                    >'require|captcha',

    // ];

    // //Verify

    // $result = $this->validate($data,$rule);

    return ['status'=>$status,'message'=>$result,'data'=>$data];

    }

    reply
    0
  • 鸿运达

    鸿运达2018-11-01 16:23:20

    No value given.

    reply
    0
  • 新新新新生

    In the checkLogin method in User.php, the initial value is defined according to what the teacher wrote, and then using alter(data.status) in ajax in login.html, the result is displayed as undefined.

    新新新新生 · 2018-11-01 19:18:39
    新新新新生

    The above is my code

    新新新新生 · 2018-11-01 19:19:12
    ringa_lee

    If the variable does not exist, it will prompt undefined.

    ringa_lee · 2018-11-03 22:10:59
  • Cancelreply