摘要: const array1 = [10, 11, 12]; console.log('获取数组的和:' + array1.reduce((a, b) => a + b)) //结果:获取数组的和:33 console.log('获取数据的最大值:' + Math.max(...array1)); // 阅读全文
posted @ 2021-12-23 16:49 密蒙 阅读(19) 评论(0) 推荐(0) 编辑