- Introduced Vue3 exercises covering composable API, reactivity, lifecycle hooks, and built-in components. - Added structured interview plan for frontend candidates focusing on HTML, CSS, JavaScript, TypeScript, and Vue. - Included starter files for each exercise and detailed README documentation for guidance.
24 lines
569 B
Markdown
24 lines
569 B
Markdown
# 练习 2:reactive 和 computed
|
||
|
||
## 目标
|
||
|
||
学会把一组相关数据放进 `reactive`,并用 `computed` 推导派生结果。
|
||
|
||
## 你要练什么
|
||
|
||
- `reactive`
|
||
- `computed`
|
||
- 响应式对象
|
||
- 派生状态
|
||
|
||
## 任务
|
||
|
||
- 用 `reactive` 管理课程信息
|
||
- 用 `computed` 计算进度文案
|
||
- 点击按钮后让完成课时增加
|
||
|
||
## 文件
|
||
|
||
- [starter.html](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/02-reactive-and-computed/starter.html)
|
||
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/02-reactive-and-computed/starter.js)
|