js数组求和,最大,最小值var array = [1,2,3]var max = 0,result = 0for(var i=0i<array.lengthi++){result += array[i]if(array[i] >max){m2023-04-11JavaScript230