gpt4 book ai didi

javascript - 我如何使用 $location.state()

转载 作者:行者123 更新时间:2023-11-30 15:20:06 25 4
gpt4 key购买 nike

我想做相当于

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com