jquerymobile - location.href - 移动页面

时间:2011-01-12 07:28:24

标签: jquery jquery-mobile

我正在使用location.href =“html page”将一个html页面移动到另一个页面。我想在移动页面时传递一些数据。怎么做?我是这个新的蜜蜂。请帮帮我。

1 个答案:

答案 0 :(得分:2)

修改

为什么这个标记为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()方法。