# TypeScript **Repository Path**: mumu1319/type-script ## Basic Information - **Project Name**: TypeScript - **Description**: typescript学习仓库,B站尚硅谷,李立超老师课程自学 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2022-03-29 - **Last Updated**: 2022-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: TypeScript ## README # TypeScript #### 介绍 自学typescript学习仓库,B站黑马程序员教程/尚硅谷(主) **开始于2022年3月29日——结束于2022年4月12日** B站前端aka老师-你单排吧: https://www.bilibili.com/video/BV12S4y1j7xJ?spm_id_from=333.999.0.0 笔记:http://codesohigh.com/subject/cms/Part1-TypeScript.html TS断点调试,需要先配置调试配置 ``` // 给数字枚举设置初始值 enum Gender03 { Female = 1, Male = 3, A = 4 } // 字符串枚举:成员值是字符串 // 字符串枚举没有自增长行为,因此,每个成员都必须有初始值 enum Gender04 { Female = '女', Male = "男", A = '2' } ``` [第二章:面向对象]: ./笔记/第二章:面向对象.md #### TS编译环境配置 1. 需要创建 tsconfig.json 配置文件 2. 控制台输入 tsc 即可编译文件夹下所有ts文件 3. 输入 tsc --watch 会监视文件夹下所有ts文件的变化并编译