$( document ).ready(function() {
$.getJSON("./data/test.json", function(json) {
console.log(json); // this will show the info it in firebug console
});
});
如何加载未在网络服务器上托管的本地文件?
我在控制台中收到错误
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
该文件正在我的C盘上托管