2014-09-13 92 views
0

我使用Phonegap開發Windows Phone Web應用程序。 當我使用的URL頁面的查詢字符串Link不工作Windows Phone Web應用程序不支持URL字符串

代碼:

<a href="profile.html?id=10">Profile</a> 

此鏈接無法在Windows手機工作8 那又怎麼能值發送到另一個頁面。

當查詢字符串被移除時鏈接工作如下。

<a href="profile.html">Profile</a> 

回答

0

我用#解決了這個登記在?

1

您可以使用本地存儲,發送值: -

/* Page A */ 
window.localStorage.setItem("id", "stringValue"); 

/* Page B */ 
var stringValue = window.localStorage.getItem("id"); 

選項2: -

您可以使用此jQuery的東西太多: - Using Jquery

相關問題