forEach循环
var array_ = [];
for(var i in json) {
array_.push(json[i])
}
var newData = [];
array_.forEach((el) => {
for(var i in newData) {
if(newData[i].Name == el.Name) {
newData[i].listInfo.push({
name: el.name
});
return;
}
}
newData.push({
name: el.name
listInfo: [{
name: el.name
}]
})
})