Javascript AngularJS$locationChangeStart存在问题

Javascript AngularJS$locationChangeStart存在问题,javascript,angularjs,internet-explorer,Javascript,Angularjs,Internet Explorer,我有一个方法: $scope.$on('$locationChangeStart', function (event, next, current) { //...... } 但当我使用Google Chrome浏览器时,我有: current = localhost:8080/index.html#/step1 next = localhost:8080/index.html#/step2 current = localhost:8080/index.html#/step2 ne

我有一个方法:

$scope.$on('$locationChangeStart', function (event, next, current) { 
    //......
}
但当我使用Google Chrome浏览器时,我有:

current = localhost:8080/index.html#/step1
next = localhost:8080/index.html#/step2
current = localhost:8080/index.html#/step2
next = localhost:8080/index.html#/step1
当我使用Internet Explorer时,我有:

current = localhost:8080/index.html#/step1
next = localhost:8080/index.html#/step2
current = localhost:8080/index.html#/step2
next = localhost:8080/index.html#/step1
如何在不同的浏览器中配置AngularJS:

current = localhost:8080/index.html#/step1
next = localhost:8080/index.html#/step2

newState和oldState参数只能在HTML5模式下以及浏览器支持HTML5历史API时定义

不幸的是,HTML5历史API是错误的


如果您必须支持IE<10…

,恐怕您必须找到另一种方法,但我使用的是Internet Explorer 11,您能在问题中解释更多吗?你到底想做什么?