我想做相当于
windows.history.pushState({data: $scope.index}, "", "/winner");
$location.state({data: $scope.index})
有效,但不是我想要的。
最佳答案
$location.state({data: $scope.index}).path('/winner')
关于javascript - 我如何使用 $location.state(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43862753/