- 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
570 B
Markdown
24 lines
570 B
Markdown
# 练习 1:createApp、setup 和 ref
|
||
|
||
## 目标
|
||
|
||
学会用 Vue3 的 `createApp` 和 `setup()` 启动页面,并用 `ref` 创建最基础的响应式数据。
|
||
|
||
## 你要练什么
|
||
|
||
- `createApp`
|
||
- `setup()`
|
||
- `ref`
|
||
- 模板插值
|
||
|
||
## 任务
|
||
|
||
- 显示页面标题和学习人数
|
||
- 点击按钮后让人数加 1
|
||
- 在控制台输出最新人数
|
||
|
||
## 文件
|
||
|
||
- [starter.html](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/01-create-app-and-ref/starter.html)
|
||
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/08-vue3/01-create-app-and-ref/starter.js)
|