Typescript笔记
TypeScript
1.编译
需要编译成 es5 语法,浏览器才能识别
tsc index.ts # 会生成同名的js文件
tsc --init # 生成tsconfig.json
# 修改tsconfig.json的outdir
# vscode里 终端→运行任务→typescript→监视tsconfig.json
2.数据类型
本节内容包括:boolean、string、number、Array<T>、[string,boolean]、enum、any、undefi
原创
2020-12-17 22:54:37 ·
142 阅读 ·
0 评论