📜  js 显示二维数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:20.706000             🧑  作者: Mango

代码示例1
var a = [];
a.push(["1", "2"]);
a.push(["1", "2"]);
a.push(["1", "2"]);

for(var i = 0; i < a[i].length; i++) {
  for(var z = 0; z < a.length; z++) {
    console.log(a[z][i]);
  }
}