groupBy let a = [{id:1,name:'me'},{id:1,name:'you'},{id:2,name:'her'}]; _.groupBy(a,'id'); //就可以实现按id分组了。 复制代码