search

Home  >  Q&A  >  body text

At 2 minutes and 55 seconds, according to the code, there is no response when clicking the login button.

public function checkLogin(Request $request){
//Initial return parameters
$status=0; //The current status defaults to 0, the request failed and did not pass verification
$result=''; //Return error message
$data = $request ->param();
return['status'=>$status,'message'=>$result,'data'=> $data];

}

<script>
$(function () {
//Add a click event to the login button
$("#login ").on('click',function (event) {
                                                                                                                                " )}", //Set the address of the submission data processing script file
                                                                                                                                                                                        to be submitted //Set the type of data submission to json
                                                                                                                        use       using ‐ ‐         use       ‐     ‐   ‐                                                             using ‐ to ’s ’ ’s ’ s ‐ ‐ ‐ ‐                                        
})
})
</script>



咿呀咿呀哟咿呀咿呀哟2452 days ago1134

reply all(3)I'll reply

  • 浩瀚若宇

    浩瀚若宇2018-02-27 00:28:00

    After searching for two hours, I finally found the key to this problem (at this time I had to say MMP to release my inner depression).

    In the sentence "success:function (data) {//Only when the return flag is 1, it will be processed." Add a space before "//" to solve the problem.

    I don’t know the specific principle, so I have to ask a god to answer it. .

    reply
    2
  • 向来无感

    It's true, I want to cry

    向来无感 · 2018-11-08 14:15:44
  • 韦小宝

    韦小宝2018-02-26 13:35:26

    No errors were reported

    reply
    0
  • Cancelreply