$(document).ready(function(){
$("#realcontent").load("b.html")
})
在审查元素中报错
jquery-3.1.0.min.js:4 XMLHttpRequest cannot load file:///C:/Users/D/Desktop/作业/课上练%E…A0/任务七/标签切换/b.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
不知道什么原因
- weiweiming 2017年03月20日 回答 #2楼
--allow-file-access-from-files"(最前面有个空格)百度这个可以,我也遇到了
- 0 评论