This commit is contained in:
eric
2026-03-11 10:26:40 -05:00
parent 4c041d939a
commit 8cbc092437
71 changed files with 13541 additions and 92 deletions

View File

@@ -0,0 +1,22 @@
# 项目初始化
## 本节要点
- 使用 Vite 创建项目
- 配置基础依赖
- 目录结构说明
## 核心命令
```bash
npm create vite@latest my-app -- --template vue
cd my-app && npm install
```
## 目录说明
| 目录 | 说明 |
|------|------|
| src | 源码目录 |
| public | 静态资源 |
| dist | 构建输出 |

View File

@@ -0,0 +1,9 @@
# 类型进阶
## 泛型基础
```ts
function identity<T>(arg: T): T {
return arg
}
```