jQuery的load()异步加载页面产生问题
jquery吧
全部回复
仅看楼主
level 3
在用以下方法加载页面时会出现错误,求解决方法,谢谢!
$(document).ready(function(){
$(".bottom").click(function(){
$(".middle").load("页面1.html");
})
$(".top").click(function(){
$(".middle").load("页面2.html");
})
})
补充:
发现浏览器警告:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
觉得是我所引用的页面也是用jq来控制,所以产生冲突了,不知道是不是,求指教
2015年12月21日 03点12分 1
level 8
用火狐试试 我记得是浏览器保护的问题
2015年12月21日 14点12分 3
不行啊~~!
2015年12月21日 14点12分
1