todos: [
{
id: 1,
text: "明明白白",
},
{
id: 2,
text: "忽冷忽热",
},
{
id: 3,
text: "豁然开朗",
},
]
removeTodos(removeId){ //这个传过来的id要是todos中的id必须无变动相等
this.todos= this.todos.filter(e=>{
return e.id !== removeId
})
}
如果false 不返回 ,返回turn的所有数据