摘要: let arr1 = [0, 1, 2, 3, 4].reduce(function (accumulator, currentValue, currentIndex, array) { // accumulator 累计器 // currentValue 当前值 // currentIndex 当前索引 // array 数组 return accumulator + currentValue 阅读全文
posted @ 2019-10-26 13:24 ronle 阅读(656) 评论(0) 推荐(1)