Jquery mobile change page

前端 未结 6 1515
灰色年华
灰色年华 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:22

    I know this has already been answered but surely the correct answer why it wasn't working is that the syntax is incorrect ?

    $.mobile.changePage requires the DOM object (for displaying pages within the same HTML file using the hash syntax) and not just a string. So the correct syntax for the example given would be:

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

    That should work a treat !

    Hope this helps

提交回复
热议问题