使用 vue3.0 实现的 TodoList。注意点有两个
- todos 初始化使用
ref([])而不是reactive([]) - watch 中监控的 todos 可以直接保存,不用取
todos.value
在 public/index.html 中使用了 cdn 样式
npm install
npm run serve
npm run build
本项目已使用 typescript 重构
| Name | Name | Last commit date | ||
|---|---|---|---|---|
使用 vue3.0 实现的 TodoList。注意点有两个
ref([]) 而不是 reactive([])todos.value在 public/index.html 中使用了 cdn 样式
npm install
npm run serve
npm run build
本项目已使用 typescript 重构