简体   繁体   English

科尔多瓦应用程序到WP8 window.location无法正常工作的Windows Phone

[英]cordova app to wp8 window.location not working windows phone

I have created an app with jquery mobile and html5. 我用jquery mobile和html5创建了一个应用程序。 I created a wp8 package using cordova for the same and have openend the solution with visual studio. 我使用cordova创建了一个wp8软件包,并使用Visual Studio开放了该解决方案。 The issue I am facing is that the window.location is not working. 我面临的问题是window.location无法正常工作。 I have given 我给了
window.location.href='home.html#basic' making it redirect to a particular div. window.location.href='home.html#basic'使其重定向到特定的div。 I also tried window.location.replace. 我也尝试过window.location.replace。 Using show and hide dive makes the functionality work but many css issues are coming when i use div show and hide. 使用显示和隐藏潜水使该功能起作用,但是当我使用div显示和隐藏时,会出现许多CSS问题。 I have gone through many previous questions but still not found any solution. 我已经经历过许多先前的问题,但仍未找到任何解决方案。 Please help. 请帮忙。

Hi all it worked i changed it to $.mobile.changePage('#basic'); 大家好,我将其更改为$ .mobile.changePage('#basic'); and it worked 而且有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM