js求数组最大值

js求数组最大值

求数组最大值的方法有很多。es6可以直接使用"Math.max(...array)",es5可以用"Math.max.apply(null,array)"。也可以考虑使用数组排序的方法,从大到小或者从
JavaScript180