//删除 onDelete(record) { //数组集合中删除指定元素 var index = this.data.indexOf(record); this.data.splice(index, 1); }