nodejs报错 XMLHttpRequest cannot load localhost:3000/test_date/. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

z在请求本地的时候  如果ajax的URL 前面没有http的话 就会报错

 

 

jq.js:2 XMLHttpRequest cannot load localhost:3000/test_date/. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

  

posted @ 2017-05-12 11:26  webbky  阅读(322)  评论(0编辑  收藏  举报