every数组方法 对比两数组保存不同id的数组
this.carList = newList.map((item, index) => {
return item
}).filter(item => this.weightList.list.every(current => current.vehicleId !== item.fid))
console.log('结果',this.carList)
![在这里插入图片描述](https://img-blog.csdnimg.cn/905a76f2d7b24c1b8adc3a80a7597be2.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiJ5pyI5aeR5aiY,size_20,color_FFFFFF,t_70,g_se,x_16)
共有 0 条评论