📅  最后修改于: 2022-03-11 15:02:37.752000             🧑  作者: Mango
代码示例1
const array = [1, 2, 3, 4];
const map = array.map((x, index) => {
console.log(index);
return x + index;
});
console.log(map);