比較好用的數組求和

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

numData.reduce(function (a, b){return a + b})
相關文章
相關標籤/搜索