js对象数组根据某一属性查找对象

console.log( list.find(item => item.id == 1))
查找id=1 的对象
posted @ 2021-01-22 15:03  在学习编程的lsy呀  阅读(5467)  评论(0编辑  收藏  举报