jQuery.mobile.loadPage
Using jQuery Mobile I have produced a mobile app with many pages all in one HTML which is fine but takes time to load and reload if needed.
I want to 开发者_JS百科divide this into several separate HTML docs. I have seen somewhere you do this within the <body>
section. I have tried jQuery.mobile.loadPage
with pageContainer
but can not get this to work.
Are there any examples of this working?
Using data-preload
and data-dom-cache="true"
you can choose which pages to preload into the DOM and which pages should be cached and retained even when "navigating away" from said page (on the same domain).
I have a somewhat working example, it's a in-development site; client wanted to see some progress. login with username "foo" password "bar" http://dmcweb.hostoi.com/index.php
精彩评论