function getMaxMin() { //js的apply语法 let asd = [1,2,3,4,5,6]; console.log(Math.max.apply(Array,[1,2,3,4,5,6])); //es6语法 let asd2 = [1,2,3,4,5,6]; console.log(Math.min(...asd2)); } getMaxMin()