0
我有一個形式爲url = localhost/abcd
的url。我現在的位置是localhost/ghi?p=1
如何重定向到使用的$位置。 $location.path(url)
重定向我localhost/abcd?p = 1。我希望它重定向本地主機/ ABCD
我有一個形式爲url = localhost/abcd
的url。我現在的位置是localhost/ghi?p=1
如何重定向到使用的$位置。 $location.path(url)
重定向我localhost/abcd?p = 1。我希望它重定向本地主機/ ABCD
你應該使用這個喜歡 -
$location.path('/abcd');
我希望這會幫助你。