How to trigger a data-rel=“back” button in JQuery Mobile 1.4.3 with javascript?

后端 未结 2 1803
误落风尘
误落风尘 2021-01-15 09:50

I am using \"page widget\" to implement a dialog in jquery mobile with data-dialog=\"true\", everything is fine, i can also back to the previous page with the b

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 10:08

    Dialog widget is deprecated as of 1.4, hence, .dialog("close") is no longer a valid function.

    To go back to previous page:

    • jQuery Mobile

      $.mobile.back();
      
    • JavaScript

      window.history(-1)
      

提交回复
热议问题