标签:一个 desktop more 浏览器 mil ted nis 文件 https
请求json文件时,谷歌浏览器下总是报这样第一个错误提示。XMLHttpRequest cannot load file:///C:/Users/Administrator/Desktop/dropload/examples/json/more.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
解决的办法:
给chrome添加启动参数:--allow-file-access-from-files。(注意 --前面要有空格)
标签:一个 desktop more 浏览器 mil ted nis 文件 https
原文地址:http://www.cnblogs.com/chenwenhua/p/7086602.html