search

Home  >  Q&A  >  body text

Questions about submitting data from ajax script

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

2069 days ago1076

reply all(4)I'll reply

  • 天蓬老师

    天蓬老师2019-03-28 17:39:05

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

    · 2019-03-28 20:32:21
  • 查无此人

    查无此人2019-03-28 17:38: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

    reply
    0
  • Cancelreply