计算二位数组内对应的索引相加
computedData(arr) { /* let arr = [ [1,2,3], [2,3,4], ] 计算结果 [3,5,7] */ let resArr = [] for (let i = 0; i < arr.length; i++) { arr[i].forEach((value, index) => { if (resArr[index] == undefined) { resArr[index] = 0; } resArr[index] += value }) } return resArr }