search

Home  >  Q&A  >  body text

There is no response after clicking login. What is the problem?

<!--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>

熠熠生辉熠熠生辉2356 days ago1396

reply all(5)I'll reply

  • Imagine Breaker

    Imagine Breaker2018-09-25 14:27:53

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


    reply
    0
  • 勇敢的心

    勇敢的心2018-08-02 09:10:41

    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
    0
  • 熠熠生辉

    It seems to be a problem with the runtime cache. During the troubleshooting process, it was refreshed.

    熠熠生辉 · 2018-08-02 13:46:47
    999

    Please tell me the solution code

    999 · 2018-12-04 12:47:45

    Hello, I would like to know how to solve it. Thank you.

    · 2019-04-19 17:08:58
  • Cancelreply