...小于 1 分钟
- vue5
- flume4
- project4
- Git2
- 使用指南1
- WEB1
- HTML1
- sink1
- flume学习1
- docker1
- git学习1
- Linux1
- MySQL1
- webServer1
- CacheDatabase1
- JavaWeb1
- web学习1
- os1
Vue3核心语法
OptionsAPI 与 CompositionAPI
- Vue2 是 OptionsAPI (选项式、配置式)风格
- Vue3是CompositionAPI (组合式)风格
setup
setup
是一个配置项,在script
标签中 使用setup
中this
是undefined
,弱化了this
setup
的执行时间在beforecreate()
之前
...大约 13 分钟
创建App
工程
相关信息
npm create vue@latest
## 1.创建命令
npm create vue@latest
## 2.具体配置
## 配置项目名称
√ Project name: vue3_test
## 是否添加TypeScript支持
√ Add TypeScript? Yes
## 是否添加JSX支持
√ Add JSX Support? No
## 是否添加路由环境
√ Add Vue Router for Single Page Application development? No
## 是否添加pinia环境
√ Add Pinia for state management? No
## 是否添加单元测试
√ Add Vitest for Unit Testing? No
## 是否添加端到端测试方案
√ Add an End-to-End Testing Solution? » No
## 是否添加ESLint语法检查
√ Add ESLint for code quality? Yes
## 是否添加Prettiert代码格式化
√ Add Prettier for code formatting? No
...大约 1 分钟