search

Home  >  Q&A  >  body text

Ajax script data submission

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

2111 days ago1333

reply all(7)I'll reply

  • 沅有芷兮澧有兰

    沅有芷兮澧有兰2019-03-29 10:41:10

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

    reply
    0
  • 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

    · 2019-03-29 10:54:56
  • 2019-03-28 17:43:42

    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
    0
  • 查无此人

    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?

    查无此人 · 2019-03-28 17:46:21

    Are you checking it in config.php? Newbies don’t understand. I have never learned it before. I am completely self-study.

    · 2019-03-28 17:49:07
  • 查无此人

    查无此人2019-03-28 17:29:25

    Take a look at the source code screenshot.

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

    reply
    0
  • Cancelreply