【发布时间】:2016-01-23 04:14:58
【问题描述】:
如何将两个相同的参数传递给 ui-sref?
productSearch({'d': 53, 'b': 20, 'b': 19, 's': 6, 'b': 19})
“b”参数只使用后一个值 19。
我将如何包含两个 b 值以转到此 url:
http://example.com/search?d=53&s=6&b=20&b=19
非常感谢!
【问题讨论】:
-
为了使它有效的键必须是唯一的,如果你想要唯一的值使用数组
标签: javascript html angularjs ui-sref