[英]Not able to reload the page in jquery mobile 1.4.5
我需要在jquery mobile(v 1.4.5)中重新加載同一頁面,但我嘗試了以下操作,但未重新加載。
$( ":mobile-pagecontainer" ).pagecontainer( "change", "#editpage", { allowSamePageTransition:true,reload: true} );
這也嘗試過。
$.mobile.pageContainer.pagecontainer( "change", "#editpage", { allowSamePageTransition:true,reload: true} );
但沒有成功。
如何在jQuery Mobile中重新加載同一頁面。
這對我有用
jQuery.mobile.changePage(window.location.href, {
allowSamePageTransition: true,
transition: 'none',
changeHash:false,
reloadPage: true
});
在你的情況下
jQuery.mobile.changePage("#editpage", {
allowSamePageTransition: true,
transition: 'none',
changeHash:false,
reloadPage: true
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.