var arr = [3, 10, 2, 100];
var max = Math.max.apply(Math, arr);
console.log(max); // 100
有大神能详细讲解一下吗,小白弄不懂
相关分类