摘要: // 计算数组中最大值 const arr = [1,2,3,4,5,6,7,8,9] let max = arr.reduce((max, age) => { return max > age ? max : age },0) <!--console.log(max)--> // 数组转哈希对象 阅读全文
posted @ 2022-10-28 11:30 追风不跟风 阅读(73) 评论(0) 推荐(0)