1. 1、安装typescript
    2. cnpm i -g typescript
    3. 2、创建一个ts文件
    4. 3、使用tscts文件进行编译
    5. tsc xxx.ts