标签:style blog color io ar sp div c on
var arr = [3, 342, 23, 22, 123] var max = Math.max.apply(null, arr) console.log(max)
var arr = [3, 342, 23, 22, 123] arr.sort(function(a, b) { return b - a }) var max = arr[0] console.log(max)
标签:style blog color io ar sp div c on
原文地址:http://www.cnblogs.com/jzm17173/p/4000765.html