求数组最大值和最小值

2019-03-08  本文已影响0人  折木丶青梵

const iMin = Math.min(...arr)
const iMax = Math.max(...arr)

上一篇 下一篇

猜你喜欢

热点阅读