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>
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. .
No errors were reported