forEach

作者: hszz | 来源:发表于2021-08-21 23:44 被阅读0次
let arrA = [{id:'0',name:'hsz'},{id:'1',name:'hszz'},{id:'10',name:'hsz'},{id:'11',name:'hszz'}]
arrA.forEach((item, index, arr) => {
    console.log("item", item)
    console.log("index", index)
    console.log("arr", arr)
})
image.png

相关文章

网友评论

      本文标题:forEach

      本文链接:https://www.haomeiwen.com/subject/yozqiltx.html