标签:最小值 spl console split log min app math nbsp
var arr = [1,2,3,4,5,6]
console.log(Math.max.apply(null,arr.join(‘,‘).split(‘,‘))) //6
console.log(Math.min.apply(null,arr.join(‘,‘).split(‘,‘))) //1
标签:最小值 spl console split log min app math nbsp
原文地址:https://www.cnblogs.com/cai001018/p/14592746.html