I'm new to Ember.js and I'm trying to parse an array query parameter in the controller
(eg /info/?id=6b2c2a2cd93a437db776a21282686c39&id=c2ffb7b2970e4374a20b699105d420e4
)
So id should be an array of [6b2c2a2cd93a437db776a21282686c39,c2ffb7b2970e4374a20b699105d420e4]
However, Ember just sets id to be the last element in the array, it doesn't set id to the actual array.
How do I do this in Ember??
Thanks!
右uri:
/info/?id[]=6b2c2a2cd93a437db776a21282686c39&id[]=c2ffb7b2970e4374a20b699105d420e4
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.