最简单的reduce例子: 数组求和 const array = [1, 2, 3, 4]; const sum = array.reduce((accumulator, currentValue) => { return accumulator + ...
確定! 回上一頁