- 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
608 B
Markdown
24 lines
608 B
Markdown
# 练习 3:watch 和 watchEffect
|
||
|
||
## 目标
|
||
|
||
学会区分“监听指定数据变化”和“自动收集依赖并执行副作用”。
|
||
|
||
## 你要练什么
|
||
|
||
- `watch`
|
||
- `watchEffect`
|
||
- 搜索关键字监听
|
||
- 副作用日志
|
||
|
||
## 任务
|
||
|
||
- 输入关键字时,用 `watch` 输出变化日志
|
||
- 用 `watchEffect` 输出当前筛选信息
|
||
- 根据关键字过滤课程列表
|
||
|
||
## 文件
|
||
|
||
- [starter.html](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/03-watch-and-watch-effect/starter.html)
|
||
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/03-watch-and-watch-effect/starter.js)
|