1. var arr=[1,2,3,4];
  2. console.log(arr);

2.二维数组

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