forEach

2021-08-21  本文已影响0人  hszz
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
上一篇 下一篇

猜你喜欢

热点阅读