📜  如何在javascript代码示例中遍历数组

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

代码示例6
const array = ["one", "two", "three"]
array.forEach(function (item, index) {
  console.log(item, index);
});