0
可以說,我輸入網址像foo/bar?myVariable=true
,我有我的$routerOnActivate
方法
$routerOnActivate(next, previous) {
if(next.params.myVariable) {
// Do something
}
}
然而PARAMS不包含放慢參數myVariable
,我怎麼可以傳遞參數的查詢字符串到$routerOnActivate
你是什麼用作路由器?你真的在輸入這樣的網址嗎? –