获取js数组元素的最大值和最小值
var array = [10,2,3,4,5,6,30,8,9]; document.write('max:'); document.write(Math.max.apply(null,array)); document.write('<br>'); document.write('min:'); document.write(Math.min.apply(null,array));
合作联系微信: w6668263 合作联系电话:177-9238-7426
var array = [10,2,3,4,5,6,30,8,9]; document.write('max:'); document.write(Math.max.apply(null,array)); document.write('<br>'); document.write('min:'); document.write(Math.min.apply(null,array));