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