开发者

jquerymobile - location.href - moving pages

开发者 https://www.devze.com 2023-02-03 14:33 出处:网络
I am using the location.href = \"html page\" to move one html page to another page. I want to pass some data when I move the pages. How to do it in? I am new bee to this one. Pleas开发者_开发知识库e h

I am using the location.href = "html page" to move one html page to another page. I want to pass some data when I move the pages. How to do it in? I am new bee to this one. Pleas开发者_开发知识库e help me.


Edit

Why is this tagged jquery-mobile at all?

If you want to pass data to server-side script, you do it as always:

href="somesite.html?foo=bar&duck=swims"
href="somesite.php?foo=bar&duck=swims"
href="somesite.aspx?foo=bar&duck=swims"

If using jquery mobile you shouldn't change pages this way at all. Create links or use changePage() method.

0

精彩评论

暂无评论...
验证码 换一张
取 消