Jquery mobile change page

前端 未结 6 1514
灰色年华
灰色年华 2020-12-14 07:38

I have two column layout for a webpage from the site, http://jquerymobile.com/demos/1.0.1/

Now they have provided provisions to changePage using

6条回答
  •  抹茶落季
    2020-12-14 08:06

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

    is the correct way to change between which div is the visible page.

    If you use

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

    The DOM will be reloaded, and any ondocumentready events will be triggered.

提交回复
热议问题