Jquery mobile change page to itself

眉间皱痕 提交于 2019-12-25 18:30:54

问题


I have a website built with jquery mobile(Single page).

I have something like a wizard: e.g. search -> select -> select -> search -> menu -> search -> search. Basically here are only three pages, but i need to change some of them to itself, like search to search, so it will be in a history and to rise a pageshow event etc...

How can i do it?

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

doesn't work in this case: here is an example to playaround.


回答1:


Have you tried the allowSamePageTransition option as discussed in the documentation?



来源:https://stackoverflow.com/questions/13410553/jquery-mobile-change-page-to-itself

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!