数组某个字段和计算
let _sumAll=[];
for(let i=0; i<_tabCate.length;i++){ _sumAll.push(_tabCate[i].sum); } for(let i = 0; i < _sumAll.length; i++) { this.result += _sumAll[i]; }let _sumAll=[];
for(let i=0; i<_tabCate.length;i++){ _sumAll.push(_tabCate[i].sum); } for(let i = 0; i < _sumAll.length; i++) { this.result += _sumAll[i]; }