Javascript 使用jQuery Mobile卸载预取页面
使用jQuery Mobile,我可以手动预取外部页面,如下所示:Javascript 使用jQuery Mobile卸载预取页面,javascript,jquery,jquery-mobile,Javascript,Jquery,Jquery Mobile,使用jQuery Mobile,我可以手动预取外部页面,如下所示: $.mobile.loadPage( "content.html", { showLoadMsg: true } ); 但我如何手动从内存中删除该页;在某种意义上,“卸载”它 感谢您的jqm页面上的如果指定了id,您可以这样做 $('#page2').remove(); 另一种方法是使用$.fn.jqmData(),$.fn.jqmRemoveData() 提及
$.mobile.loadPage(
"content.html",
{ showLoadMsg: true }
);
但我如何手动从内存中删除该页;在某种意义上,“卸载”它
感谢您的jqm页面上的如果指定了
id
,您可以这样做
$('#page2').remove();
另一种方法是使用$.fn.jqmData(),$.fn.jqmRemoveData()
提及