![](/img/trans.png)
[英]IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8
[英]IBM Worklight - $(“#pagePort”).load() not working in Windows Phone 8
我正在使用$("#pagePort").load()
在我的應用程序中的頁面之間進行導航,並且它在Android(模擬器和設備)中均能完美運行。
但是,當我嘗試從Windows Phone 8的仿真器運行它時,我的應用程序無法更改其頁面。
為了使changePage功能在Windows Phone 8中起作用,我做了以下操作。我懷疑此更改也會使許多事情“突然”也起作用。
在某個時間點,此更改應該是下一個jQuery Mobile版本的一部分...
請嘗試:
打開jquery.mobile-1.xxjs並重構代碼,如下所示:
- var uri = url ? this.parseUrl( url ) : location,
- hash = this.parseUrl( url || location.href ).hash;
+ var uri = this.parseUrl( url || location.href ),
+ hash = uri.hash;
和:
- return uri.protocol + "//" + uri.host + uri.pathname + uri.search + hash;
+ return uri.protocol + uri.doubleSlash + uri.host + uri.pathname + uri.search + hash;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.