摘要: reduce()用于计算数组元素相加之后的总和。 语法:array.reduce(function(total, currentValue, currentIndex, arr), initialValue) 参数描述: total:必需。初始值, 或者计算结束后的返回值 currentValue: 阅读全文
posted @ 2022-02-21 17:37 //唉 阅读(405) 评论(0) 推荐(0)