let a = [ [ {name:"美容护肤",value:"123"}, {name:"电子数码",value:"200"}, {name:"家具",value:"10"}, ], [ {name:"美容护肤",value:"70"}, {name:"电子数码",value:"50"}, {name:"家具",value:"20"}, ], [ {name:"美容护肤",value:"65"}, {name:"电子数码",value:"150"}, {name:"家具",value:"45"}, ] ] let b = {} a.map((aitem)=>{ aitem.map(item=>{ if(b[item.name]){ b[item.name].push(item.value) }else{ b[item.name] = [] } }) }) console.log(b) let c = Object.keys(b).map(key=>{ return { name:key, value:b[key] } }) console.log(c)