课程
/前端开发
/前端工具
/Vue+Webpack打造todo应用
this.todos.filter(todo => completed === todo.completed)
这里的todo 是什么呀。求指点
2021-05-24
源自:Vue+Webpack打造todo应用 3-4
正在回答
如果你换成ES5就知道了
this.todos.filter(function(todos) {
return completed === todos.completed
}
雨道3436185 提问者
this.todos.filter(function(todo) {
return completed === todo.completed
我换成
this.todos.filter(todos => completed === todos.completed)
也一样啊
所以这个todo是哪来的
weixin_慕函数2218050
举报
用前端最热门框架Vue+最火打包工具Webpack打造todo应用
5 回答todo => completed === todo.completed这是什么写法
1 回答 <div :class="['todo-item', todo.completed ? 'completed':'']">
1 回答 !todo.completed
2 回答todo.completed
1 回答completed的值