对于移动应用程序,我可以去:
$.mobile.changePage("#home");
使用id。
如果我想在我想要转到另一个页面的网页上使用它,例如home.html,那该等价物是什么?
感谢您的帮助。
答案 0 :(得分:-1)
尝试使用 .pagecontainer() ,因为版本$.mobile.changePage()
已弃用1.4.0
,并且会在1.5.0
中删除:
$(":mobile-pagecontainer").pagecontainer("change", "home.html");