0

So I'm working with a few multipage Jquery Mobile documents that I want to be able to navigate between but not leave the WebView created by the mobile web app and still have the transitions. I've come across Todd Thomson's subpage widget and basically couldn't understand how to set everything up (visual learner and there are no template or demos on his github, no worries Todd if your out there).

So my question is, when you navigate from index.html to a multipage Jquery mobile document,page1.html via ajax is it possible to clear out what remains from the index.html and load the rest of the page1.html after the transition?

4

1 回答 1

0

当您从 index.html 链接到 page1.html(这是一个多页文档)时,您需要将属性rel="external"添加到链接中。这为您清除了 dom,以允许通过 # 锚点在文档中的多个页面之间进行链接。

于 2013-03-21T03:05:48.650 回答