Questions about submitting data from ajax script
2019-03-28 14:22:15
0
4
1092

Teacher, hello, I would like to ask you about the Ajax url path problem. Why can’t the data be submitted?

reply all(2)
Peter-Zhu

What is the specific error message? Is it that the background cannot be obtained after submission, or the submission cannot be successful at all? Please attach the error message and write the corresponding framework version

  • reply Follow the teacher's explanation step by step. Clicking the login button cannot obtain data. There is no reminder or the like. Check f12 and the error message is jquery.min.js:5 Failed to load file:///C:/phpStudy/PHPTutorial/WWW/jcgl/application/index/view/user/%7B:url('checkLogin')%7D : Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Teacher, please take a look and see where I went wrong.
    author 2019-03-28 20:32:21
欧阳克

The path is based on your framework. You can write the complete path, how you access the page, and the ajax submission address is the same

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