map的使用

79 阅读1分钟

原数据

image.png

let arry=list.map(item=>item.id)
console.log(arry)

image.png