摘要:
# 数据类型 > typescript会进行类型推导,不需要每个都写类型注释 ## 数组 ```js let list1:string[]=['aa','bb'] // 数组类型并且内容都为string let list2:any[] = ['aa',1,3] let list3:Array = [ 阅读全文
posted @ 2023-06-01 03:08
转角90
阅读(61)
评论(0)
推荐(0)
摘要:
## request类的封装 ```js // request/index.ts import axios from 'axios' import type { AxiosInstance } from 'axios' import type { XYRequestInterceptors, XYR 阅读全文
posted @ 2023-06-01 03:08
转角90
阅读(139)
评论(0)
推荐(0)
摘要:
# 1. 集成 editorconfig 配置 EditorConfig 有助于为不同 IDE 编辑器上处理同一项目的多个开发人员维护一致的编码风格。 ```yaml # http://editorconfig.org root = true [*] # 表示所有文件适用 charset = utf 阅读全文
posted @ 2023-06-01 03:07
转角90
阅读(72)
评论(0)
推荐(0)

浙公网安备 33010602011771号