标签:turn div 求和 reduce style color code core class
直接上代码
this.totalScore = arr.reduce( (prev, cur) => { return cur.score + prev; }, 0 );
reduce求和
原文地址:https://www.cnblogs.com/Jennyishere/p/13212150.html