Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含多个 html 文件的网站。对于某些页面,我正在设置 data-dom-cache="true"。但是,我不希望页面永远被缓存。有没有办法指定页面应该被缓存的持续时间。在 JQM 中应该为此做些什么。
在 jQuery Mobile 中没有 DOM 缓存过期时间设置,但您可以手动处理从 DOM 中的删除。
为了从 DOM 中删除页面,您必须使用:
$('#page-id').remove();