比较好用的数组求和

var numData = [10, 2, 8, 19, 28];

numData.reduce(function (a, b){return a + b})

  

原文地址:https://www.cnblogs.com/paul-du/p/8870459.html