开发者

jQuery.mobile.loadPage

开发者 https://www.devze.com 2023-04-03 16:12 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消