deleteTodo刪除功能無效
<Item:todo="todo"v-for="todo?in?todos":key="todo.id"@del="deleteTodo"/> deleteTodo(id){this.todos.splice(this.todos.findIndex(todo?=>?todo.id===id),?1)}
<buttonclass="destory"@clcik="deleteTodo"></button> methods:{deleteTodo(){this.$emit('del',?this.todo.id)}}
2018-11-21
click不是clcik。。
2018-09-28
@
clcik 你基本語法都錯了