登陆

jquery,文件和php文件都放www文件夹中,但是老是有这个错误,怎么解决

jquery,文件和php文件都放www文件夹中,但是老是有这个错误,怎么解决

jquery-1.12.3.min.js:4 Failed to load file:///D:/phpstudy_pro/WWW/example03.php: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

send @ jquery-1.12.3.min.js:4


海狼三世海狼三世2019-12-05 11:24:12549 次浏览

全部回复(2)我要回复

  • phpsutdy-爱好者

    phpsutdy-爱好者2019-12-06 14:22:20

    你是直接打开的html吧,请用网址访问

    回复
    0
  • 海狼三世

    海狼三世2019-12-05 11:26:43

    或者是这样的提示:怎么解决

    jquery-1.12.3.min.js:4 Access to XMLHttpRequest at 'file:///D:/phpstudy_pro/WWW/example05.php' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

    send    @    jquery-1.12.3.min.js:4    

    ajax    @    jquery-1.12.3.min.js:4    

    (anonymous)    @    Example05jQueryAJAX_ajax().html:32    

    dispatch    @    jquery-1.12.3.min.js:3    

    r.handle    @    jquery-1.12.3.min.js:3    


    回复
    0
  • 取消回复发送