数组下对象的数字之和
this.projectshareamount=this.dataList.reduce(function(total,item){
console.log(item.oldprojectshareamount);
return Number(item.oldprojectshareamount) + Number(total)
},0)
2024-01-23 23:20:22
this.projectshareamount=this.dataList.reduce(function(total,item){
console.log(item.oldprojectshareamount);
return Number(item.oldprojectshareamount) + Number(total)
},0)