直接上代码
removeByValue(arr, attr, value) { //数组,属性,属性值 var index=0; for(var i in arr){ if(arr[i][attr]==value){ index=i; break; } } arr.splice(index,1);},
this.removeByValue(this.checkBoxData,"dealId",tag.id)