export default {
data: {
todoList:[
{
info:'给老王打个电话',
status : true
},
{
info:'输出工作计划',
status : false
},
{
info:'和小王对接需求',
status : true
},
{
info:'整理客户资料',
status : false
},
{
info: '和朋友一起聚餐',
status: false
}
]
},
onInit() {
this.title = this.$t('strings.world');
},
remove(index){
console.log(index)
this.todoList.splice(index,1);
},
switchChange(index){
this.todoList[index].status = !this.todoList[index].status
},
addTodo(){
this.todoList.push({
info: 'IDE工具无法监听键盘输入',
status: false
})
},
computed :{
todocount(){
let num =0;
this.
第一次笔记(案例)
最新推荐文章于 2024-09-27 15:52:57 发布
这篇博客记录了作者作为前端开发新手的学习心得,涵盖了HTML、CSS和JavaScript的基础知识,通过一个实际的小项目展示了如何将这些技术结合应用。
摘要由CSDN通过智能技术生成