jquery mobile multipage wont work

情到浓时终转凉″ 提交于 2019-12-06 00:31:40
geralOE

Try adding to the anchor the attribute rel="external".

Example:

<a href="#description" data-role="button" data-icon="star" rel="external">Description</a>

try giving <div data-role="page" first for your second page

When you call this page from another page, it ONLY loads the div[data-role="page"] of that page, not the other div in this multi-page file!

Actually to be precise, when you link to a page from another page, ONLY the code inside the div you are targeting is pulled in via AJAX, even if you had JS in the <head> that won't get loaded either.

Try linking to this page with an external link and you'll find it works fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!