【发布时间】:2015-02-13 09:03:59
【问题描述】:
有没有办法在多页面布局中用data-role="page"刷新特定的div。我已经走了通过此链接Does jQuery's .data() cache persist across page transitions in jQuery mobile? 但没有刷新 div 的解决方案。我没有从任何服务器加载任何 html 内容。当我使用 reload:true 时,整个应用程序重新加载(是因为,我在页面之间导航时使用 changeHash:false)。提前致谢。
$("#buttonID").click(function(){
$.mobile.changePage("#PageId",{
allowSamePageTransition: true,
transition: 'fade',
changeHash: false
});
});
【问题讨论】:
标签: javascript jquery jquery-mobile