方法一 ``` function getMaxOfArray(arr){ return Math.max,apply(null, arr) } ``` 方法二 ``` Math.max(...arr); ``` 方法三 自定义一个函数,把数组里的每个数遍历一遍。