摘要: 数组获取最大值 1、apply var arr = [3, 8, 6, 2, 1]; Math.max.apply(null, arr); function maxAndMin(arr){ return { max:Math.max.apply(null,arr.join(',').split(', 阅读全文
posted @ 2017-07-20 23:18 付太 阅读(693) 评论(0) 推荐(0) 编辑