📅  最后修改于: 2022-03-11 15:03:05.729000             🧑  作者: Mango
代码示例6
const avengers = ['IronMan','thor', 'captain america', 'hulk'];
avengers.forEach((item, index)=>{
console.log(index, item)
})