`
arr = [1, 2, 3]
arr.forEach((item, index) => {
if (index === 0) arr.splice(index, 1);
var temp = {
item,
index
}
console.table(temp)
})`
结果页是什么
arr = [1, 2, 3]
arr.forEach((item, index) => {
if (index === 0) arr.splice(index, 1);
var temp = {
item,
index
}
console.table(temp)
})`
结果页是什么
展开
评论
点赞