There is no response after clicking login. What is the problem?
熠熠生辉
熠熠生辉 2018-08-01 17:29:16
0
5
1340

<!--Ajax submission script-->
<script>
$(function(){
//Add a click event to the login button
$("#login ").on('click',function(event){
$.ajax({
type:"POST", //The delivery method is POST
url:"{:url('checkLogin ')}", //Set the address of the script file for submitting data processing
           data:$("form").serialize(), // //Serialize the current form data before submitting it
                                                                                                                                                                    ', //Set the type of submitted data to json
                                                                                                                                              ;
})
})
</script>

熠熠生辉
熠熠生辉

reply all(2)
Imagine Breaker

Has your problem been solved? I also encountered it, but it was not a runtime cache problem


勇敢的心

You can't see it this way. You have to debug with breakpoints to know which part is the problem, such as whether the return value of the program is correct, whether the format received by js is correct, etc.

  • reply It seems to be a problem with the runtime cache. During the troubleshooting process, it was refreshed.
    熠熠生辉 author 2018-08-02 13:46:47
  • reply Please tell me the solution code
    999 author 2018-12-04 12:47:45
  • reply Hello, I would like to know how to solve it. Thank you.
    author 2019-04-19 17:08:58
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!