三星S4 history.back第一次没有工作

Sam*_*mar 7 history android back samsung-mobile angularjs

当用户在混合(Angular JS)应用程序中单击某些取消操作时,history.back第一次无法在我的应用程序中工作.如果我按下设备后退按钮再试一次,那么效果很好.

我尝试了以下各种可能性

$window.history.back();

// Normal window
window.history.back();
 and
window.histroy.go(-1); return false;

// HTML onclick function
<div ng-click="Javascript:history.back()">back</div>
<div ng-click="Javascript:history.go(-1)">back</div>
Run Code Online (Sandbox Code Playgroud)

没有上述解决方案.