let arr = this.getCartData let arr1 = this.choselist arr = arr.filter(item => { let list = arr1.map(v => v.id) return !list.includes(item.id) }) this.getCartData = arr console.log(this.getCartData)
原文地址:https://www.cnblogs.com/lwming/p/11708565.html
时间: 2024-12-16 04:34:16