js for循环条件判断因为arr[0],arr[1],arr[2]都是不为0的数字,可以转换为true,arr[3]就是undefined了,转换为false。假如改成这样var arr = [0,1,2,3]for (var i = 0j = arr[i]i+2023-04-29JavaScript300