jquerymobile- location.href-移动页面
-
10-10-2019 - |
题
我正在使用location.href =“ HTML页面”将一个HTML页面移至另一个页面。移动页面时,我想传递一些数据。怎么做?我是这个蜜蜂的新蜜蜂。请帮我。
解决方案
编辑
为什么这个标记的jQuery-mobile?
如果要将数据传递到服务器端脚本,则一如既往地执行:
href="somesite.html?foo=bar&duck=swims"
href="somesite.php?foo=bar&duck=swims"
href="somesite.aspx?foo=bar&duck=swims"
如果使用jQuery Mobile,您根本不应该以这种方式更改页面。创建链接或使用ChangePage()方法。
不隶属于 StackOverflow