
在Google里不支持jQuery里的load函数加载新界面,怎么办
$(".right01").click(function(){$(".right_content").load("first_index.html");})$(".rig...
$(".right01").click(function(){
$(".right_content").load("first_index.html");
})
$(".right02").click(function(){
$(".right_content").load("index_right02.html");
})
这段代码在Google和360浏览器都不能使用,而在IE和火狐里能正常显示效果,求助,我该用怎么解决 展开
$(".right_content").load("first_index.html");
})
$(".right02").click(function(){
$(".right_content").load("index_right02.html");
})
这段代码在Google和360浏览器都不能使用,而在IE和火狐里能正常显示效果,求助,我该用怎么解决 展开
1个回答
展开全部
chrome的ajax要请求远程文件,你在console里看看不能加载时候报的错是不是XMLHttpRequest cannot load file这种
更多追问追答
追问
是的,这种情况下我如何解决,现在我在本地编写界会出现这样的问题,放置在服务器上是否也会出现这个问题
追答
如果是java web程序,请求一个servlet,让servlet返回这个html就好了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询