Ajax script data submission
2019-03-28 14:26:38
0
7
1308

The data cannot be submitted. There is no response when I click to log in. I don’t know if it is a problem with the url path. I would like to ask the teacher for advice

reply all(3)
我是蓝天o

Is there a missing number in the ajax request URL?1553827245(1).png

  • reply Later, I added single quotes and found that it was still wrong. I didn’t know how to fix it. I followed the video step by step and many problems appeared. Newbies haven’t learned how to solve this problem
    author 2019-03-29 10:54:56

11.PNGThis is a screenshot of User.php under controller

This is the file directory tree

12.PNG13.PNGThis is the Ajax of login.html under user

14.PNGThis is the error message from Google Chrome

Please let me know what went wrong



  • reply You didn't see that there are errors before and after ur(). It means you said {:url()} does not work. Take a look at your own configuration. Do you need to add a prefix?
    查无此人 author 2019-03-28 17:46:21
  • reply Are you checking it in config.php? Newbies don’t understand. I have never learned it before. I am completely self-study.
    author 2019-03-28 17:49:07
欧阳克

Take a look at the source code screenshot.

Or press F12, you can see the debugging and see if there is a request url.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template