为啥我下载至本地后运行无法得到想要的结果?
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
浏览器提示这个
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
浏览器提示这个
2015-05-27
$.getJSON("http://www.imooc.com/data/sport.json", 看到这句话了吗?这句话只能在网站上用,你如果在本地的话,需要有个人的json文件
举报