2.二维数组var arr=[1,2,3,4];console.log(arr); 2.二维数组 var arr=[[1,2],[3,4]]; console.log(arr[0][1])//2 console.log(arr[1][0])//3