JS返回数组的最大值与最小值

`console.log(Math.max.apply(null, [1, 3, 5]));`
`console.log(Math.min.apply(null, [1, 3, 5]));`
`console.log(Math.max.call(null, 1, 3, 5));`
`console.log(Math.min.call(null, 1, 3, 5));`
posted @ 2020-09-19 15:10  wing1377  阅读(313)  评论(0编辑  收藏  举报