let numArr = [11,44,66,88,77]
console.log(Math.min.apply(null, numArr)) // 11
console.log(Math.max.apply(null, numArr)) // 88
js获取最大最小值
最新推荐文章于 2023-01-30 20:41:45 发布
let numArr = [11,44,66,88,77]
console.log(Math.min.apply(null, numArr)) // 11
console.log(Math.max.apply(null, numArr)) // 88