JS数组遍历和获取数组最值
js中数组模式var myArray=new Array();myArray = {1,4,3,7,6,9,2,5};//获取最大值var max_val = '';for (var a = 0; a < myArray.length; a++) {var cur1 = myArray.get(a);cur1 > max_val ? max_val = cur1 : nu...