vararr=[{id:1,name:'a'},{id:1,name:'b'},{id:2,name:'c'},{id:2,name:'d'}];实现结果:arr=[{id:1,name:['a','b']},{id:2,name:['c','d']}];请问怎么实现? 查看完整描述