var arr = [1, 5, 3, 8, 9];
var min = Math.min.apply(Math, arr); // 1
var max = Math.max.apply(Math, arr); // 9
转载于:https://www.cnblogs.com/Zting00/p/7497648.html
var arr = [1, 5, 3, 8, 9];
var min = Math.min.apply(Math, arr); // 1
var max = Math.max.apply(Math, arr); // 9
转载于:https://www.cnblogs.com/Zting00/p/7497648.html