How to navigate back one page using $.mobile.changePage

后端 未结 6 1197
长情又很酷
长情又很酷 2021-02-07 04:19

All of the JQuery Mobile documentation I can find about navigating backwards assumes I am going to do this using an anchor tag and suggest I add data-rel=\"back\" t

6条回答
  •  一向
    一向 (楼主)
    2021-02-07 04:59

    Add changeHash: true from where you are redirecting. And then use 'history.back()' or 'history.go(-1)' from your current page. It will only take you 1 page back.

    $.mobile.changePage("yourpage.html",{ transition: "flip", changeHash: true});
    

提交回复
热议问题