如何使用网页的更改页面

时间:2014-05-07 12:17:05

标签: jquery jquery-mobile

对于移动应用程序,我可以去:

$.mobile.changePage("#home"); 

使用id。

如果我想在我想要转到另一个页面的网页上使用它,例如home.html,那该等价物是什么?

感谢您的帮助。

1 个答案:

答案 0 :(得分:-1)

尝试使用 .pagecontainer() ,因为版本$.mobile.changePage()已弃用1.4.0,并且会在1.5.0中删除:

$(":mobile-pagecontainer").pagecontainer("change", "home.html");
相关问题