[英]Alternative to $.mobile.changePage or $.mobile.changePage(back)
I have this function: click: function() { $.mobile.changePage('#Page');}
After a list element is clicked clicking I need to go back exactly where I've been regardless of where the function is called. 我有此功能:click:
function() { $.mobile.changePage('#Page');}
单击列表元素后,无论调用该函数的位置如何,我都需要精确返回function() { $.mobile.changePage('#Page');}
的位置。 Somewath like $.mobile.changePage(back);
像
$.mobile.changePage(back);
Thanks in advance. 提前致谢。
If all you want to do is get back to the previous page in history; 如果您只想返回历史记录的前一页,请执行以下操作:
history.go(-1);
should do that. 应该这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.