JS求数组最大值常用方法
第一种方法: 循环数组 第二种方法:用eval+Math.max 第三种方法:用apply+Math.max 第四种方法: 排序取第一个 tips:数组的sort方法要是不写后 ...
第一种方法: 循环数组 第二种方法:用eval+Math.max 第三种方法:用apply+Math.max 第四种方法: 排序取第一个 tips:数组的sort方法要是不写后 ...