0
是否可以合併來自原始URL的查詢字符串?用ngRoute合併查詢字符串
所以我有這樣的index.html哪些路由與ngRoute
,像這樣:
function($routeProvider) {
$routeProvider
.otherwise(
redirectTo: '/login'
)
}
我想要做的是以下網址
index.html?toke=1234567
合併
index.html#/login?token=1234567
你的意思是說你想從url的'index.html#/ login?token = 1234567'獲取queryString的值嗎? –
不,我知道它可以通過'$ location.search'完成,我想要的是設置'$ routeProvider',以便將原始URL轉換爲新的URL。 – lastr2d2