Javascript 使用window.location.href时出现白色屏幕

Javascript 使用window.location.href时出现白色屏幕,javascript,html,jquery-mobile,Javascript,Html,Jquery Mobile,当我从一个html页面导航到另一个html页面时,我使用了window.location.href,屏幕显示为白色,然后将显示第2页。 下面是我使用html5、jquery mobile、phoneGap的代码 $("#search").on("click", function() { window.location.href='index.html#searchModule'; }); 我想这只是浏览器做的一件事。。。请尝试使用

当我从一个html页面导航到另一个html页面时,我使用了window.location.href,屏幕显示为白色,然后将显示第2页。
下面是我使用html5、jquery mobile、phoneGap的代码

 $("#search").on("click", function() {  
            window.location.href='index.html#searchModule';         
        });

我想这只是浏览器做的一件事。。。请尝试使用其他浏览器,并告诉我们是否得到相同的结果。请尝试window.location.href='index.html';。。仅搜索更具体的url—绝对或相对url。。首先是
/
http://
您使用的是哪个jQM版本?您想导航到另一个页面,使用还是不使用jQM的Ajax?