# 2020Ts **Repository Path**: bug_small/typescript2020 ## Basic Information - **Project Name**: 2020Ts - **Description**: 静下心来,写代码... - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 对 TS 比较好的 - 前端 angular react 比较好 Vue 不太好 - 后端 express nest.js koa 对 TS 支持也非常好 - type 和 interface 的区别与联系? - type 只定义类的别名 interface 才是真正的类型 - type a = string | number - 类和接口的区别都有哪些 - 接口只是一个类型 只是用来去修饰对象或者被类去实现的,经过 TS 编译之后就会消失 - 类即是类型(指的是类的实例的类型), 也是值 构造函数 ,编译之后还在 - 类的接口和抽象类区别都有哪些 - 接口就是接口 类就是类 - 类可以实现接口 - 抽象类就是不能实例化的类,不能 new 的类 - extends implements 的区别是什么? - 只有类才能实现接口 class xx implements interface - 接口要以继承接口 interface child extends father