从其他地方跳转过来的地址类似于 http://www.test.com/#/login?mustLogin=1&returnUrl=http:%2F%2Fwww.back.com%2F#%2Fback编码前是http://www.test.com/#/login?mustLogin=1&returnUrl=http://www.back.com/#/back然后我的$stateProvider是$stateProvider.state("login", angularAMD.route({
url: "/login?mustLogin&returnUrl",
templateUrl: "/login/module/auth/views/login.html",
controller: "loginController"
}));然后我在loginController里console.log($stateParams);得到Object {mustLogin: "1", returnUrl: "http://www.back.com/"}可以查看出#之后的字符丢失了,我希望能获取到returnUrl完整的值
添加回答
举报
0/150
提交
取消