摘要: forEachvar arr = [1, 2, 3, 4, 5];// forEacharr.forEach(function (item, i, array) { console.log(item, i, array); }) 结果:1 0 [1, 2, 3, 4, 5]2 1 [1, 2, 3, 阅读全文
posted @ 2022-02-24 16:23 elliot1004 阅读(105) 评论(0) 推荐(0)