【ECMAScript】循环

 

for of

for (let [index, item] of arr.entries()) {
}
for (const [index, item] of arr.entries()) {
}

 

posted @ 2022-03-24 14:30  翠微  阅读(15)  评论(0编辑  收藏  举报