Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windows phone web app中不支持URL字符串_Url_Cordova_Windows Phone 8 - Fatal编程技术网

windows phone web app中不支持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

我正在使用Phonegap开发windows phone webapp。 当我在页面的url中使用查询字符串时,该链接不起作用

代码:


此链接在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");