📜  嵌套 for 循环 - Javascript 代码示例

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

代码示例1
let arr = [
  [1,2], [3,4], [5,6]
];
for (let i=0; i < arr.length; i++) {
  for (let j=0; j < arr[i].length; j++) {
    console.log(arr[i][j]);
  }
}