比较好用的数组求和

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

numData.reduce(function (a, b){return a + b})
相关文章
相关标签/搜索