's'
This commit is contained in:
22
public/markdown/course/1/1.md
Normal file
22
public/markdown/course/1/1.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 项目初始化
|
||||
|
||||
## 本节要点
|
||||
|
||||
- 使用 Vite 创建项目
|
||||
- 配置基础依赖
|
||||
- 目录结构说明
|
||||
|
||||
## 核心命令
|
||||
|
||||
```bash
|
||||
npm create vite@latest my-app -- --template vue
|
||||
cd my-app && npm install
|
||||
```
|
||||
|
||||
## 目录说明
|
||||
|
||||
| 目录 | 说明 |
|
||||
|------|------|
|
||||
| src | 源码目录 |
|
||||
| public | 静态资源 |
|
||||
| dist | 构建输出 |
|
||||
9
public/markdown/course/2/1.md
Normal file
9
public/markdown/course/2/1.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# 类型进阶
|
||||
|
||||
## 泛型基础
|
||||
|
||||
```ts
|
||||
function identity<T>(arg: T): T {
|
||||
return arg
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user