// 已选中优惠券列表的删除事件
deleteSelectedGift(item,type) {
this.GiftTemp.GiftList.forEach((temp, index)=>{
if(item.ID == temp.ID){
this.GiftTemp.GiftList.splice(index, 1);
};
});
},
splice应用
最新推荐文章于 2022-10-11 14:17:41 发布
// 已选中优惠券列表的删除事件
deleteSelectedGift(item,type) {
this.GiftTemp.GiftList.forEach((temp, index)=>{
if(item.ID == temp.ID){
this.GiftTemp.GiftList.splice(index, 1);
};
});
},