JS 快速获取数据中的最大、最小值

var  numbers = [5,23 , 1420 , 5215 , 228 , 400 , 105, 411];

var maxInNumbers = Math.max.apply(Math, numbers);

var minInNumbers = Math.min.apply(Math, numbers);

posted @ 2017-02-27 17:42  善未易明  阅读(3626)  评论(0编辑  收藏  举报