windows phone web app中不支持URL字符串
我正在使用Phonegap开发windows phone webapp。 当我在页面的url中使用查询字符串时,该链接不起作用 代码:windows phone web app中不支持URL字符串,url,cordova,windows-phone-8,Url,Cordova,Windows Phone 8,我正在使用Phonegap开发windows phone webapp。 当我在页面的url中使用查询字符串时,该链接不起作用 代码: 此链接在windows phone 8中不起作用。 然后我如何将值发送到另一个页面 当查询字符串如下所示被删除时链接工作 <a href="profile.html">Profile</a> 您可以使用本地存储发送值:- /* Page A */ window.localStorage.setItem("id", "stri
此链接在windows phone 8中不起作用。
然后我如何将值发送到另一个页面
当查询字符串如下所示被删除时链接工作
<a href="profile.html">Profile</a>
您可以使用本地存储发送值:-
/* Page A */
window.localStorage.setItem("id", "stringValue");
/* Page B */
var stringValue = window.localStorage.getItem("id");
备选案文2:-
您也可以使用jquery工具:-我用
代替?
解决了这个问题
/* Page A */
window.localStorage.setItem("id", "stringValue");
/* Page B */
var stringValue = window.localStorage.getItem("id");