$(document).ready(function(){
$.ajax({
type: "post",
url: "http://www.hibeans.com/templateUploadTmp/2.html",
cache: false,
dataType: "html",
success: function(a){
alert(a);
}
}); });请问 JQUERY 为什么访问地址为出错呢 “我的页面除了调一个 jquery库 和这段代码 其余什么都没有了”报错内容为: JQUERY 行:2699
Access to restricted URI denied" code: "1012
xhr.open(type, s.url, s.async);如果URL是 url: "2.html",就不报错,可以弹出内容来。
$.ajax({
type: "post",
url: "http://www.hibeans.com/templateUploadTmp/2.html",
cache: false,
dataType: "html",
success: function(a){
alert(a);
}
}); });请问 JQUERY 为什么访问地址为出错呢 “我的页面除了调一个 jquery库 和这段代码 其余什么都没有了”报错内容为: JQUERY 行:2699
Access to restricted URI denied" code: "1012
xhr.open(type, s.url, s.async);如果URL是 url: "2.html",就不报错,可以弹出内容来。
肯定是你跨域调用了