我正在使用包含三个html页面的jquery Mobile开发一个phonegap android应用程序。我希望在从一个页面到另一个页面的导航过程中包含过渡。 用于在我使用的页面之间导航
window.location = "abc.html";
每个页面都包含一些在页面初始化时加载的动态数据。 我试过 data-transition =“slide”。但没有任何影响。 如何在我的应用程序中包含用于页面导航的幻灯片转换?
答案 0 :(得分:0)
$.mobile.changePage('abc.html', { transition : 'slide'});
答案 1 :(得分:0)
function change_page(page){
$.mobile.changePage( page, { transition: "slide", changeHash: false });
}
调用此函数:change_page('#load_page');
或change_page('mypage.html');