我的webapp正在使用angularjs-1.5.11,我们使用下面的代码返回应用程序:
$window.history.go(-1)这是在IOS10.2.1中不工作--我已经尝试过了--但是没有工作
window.history.go(-1)
history.back()
navigator.app.backHistory我看到了其他建议禁用hashListening的帖子,但我不知道如何在angularjs中这样做。
任何人都有建议。
发布于 2017-05-31 11:07:00
试着用jquery来做
$(document).bind('mobileinit', function () {
$.mobile.hashListeningEnabled = false;
$.mobile.linkBindingEnabled = false;
});并确保您的文件按以下顺序排列
<script src="jquery.js"></script>
<script src="custom-scripting.js"></script> <!-- Note your script before jqm -->
<script src="jquery-mobile.js"></script>https://stackoverflow.com/questions/44283049
复制相似问题