js中,用for循环找出一组数组中的最大值和最小值,document.write输出,var a = [1,2,3,4,5,6], x, max = a[0], min = a[0]for (x in a) { if (a[x] > max) { max = a[x] } 2023-04-17JavaScript360