```
//子组件js
this.$emit('delete',{})
```
实例:
```
//子组件
methods:{
handleClick(){
this.$emit('delete',this.index)
}
}
```
```
//父组件
<div id="app">
<todo-item :content="item" :index="index"
v-for="(item,index) of arr"
@delete="handleDelete"></todo-item>
</div>
```
> @delete="handleDelete"获取子组件delete中参数this.index
```
methods:{
handleDelete(index){
console.log(index)
this.arr.splice(index,1);
}
}
```