问题
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