📜  for 列表中的元素 javascript 代码示例

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

代码示例1
var myList = ["first element", "second element", "third element"];

for (let elem in myList) {
    console.log(elem);
}