Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

angular ui router如何将查询参数设置为数组,即使该参数只有一个成员?

/list?assigned_domain&assigned_plan

如果界面只传一个参数{assigned_domain:1}路由$stateParams里面拿到的不是数组,而是一个简单字符串

此外如果参数是一个数组,地址栏里面的参数呈现的是?assinged_domain=1&assinged_domain=2
而不是?assinged_domain%5B%5D=1&assinged_domain%5B%5D=2


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
365 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...