Vue根据索引删除数组中的某项:
deleteEdit: function(index){
this.editListData.splice(index, 1);
}
Vue根据id查找当前索引,然后删除数组中的某项:
deleteEdit: function(id){
this.editListData.splice(this.editCheckedData.indexOf(id), 1);
}
Vue根据索引删除数组中的某项:
deleteEdit: function(index){
this.editListData.splice(index, 1);
}
Vue根据id查找当前索引,然后删除数组中的某项:
deleteEdit: function(id){
this.editListData.splice(this.editCheckedData.indexOf(id), 1);
}