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
replyFollow 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.
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
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