I'm currently have an issue with my code.
When I call the changepage method on jquery mobile, my page stay in the dom.
I want to remove that, but I didn't find the answer on internet and stackoverflow.
I tried to $().remove() manually my page, but when I keep back into the page, it doesn't display anything.
Anyone have the solution ? Thanks for your time.
This may fix your issue:
$('div[data-role="page"]').on('pageshow',function(event, ui){
$(ui.prevPage).remove();
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.