Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 554 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 554 Bytes

myTypeScriptStudy

This is the note about the TypeScript.   

1、TypeScript 的基础使用方法.

创建 .ts 文件、编写代码、运行 tsc x.ts 来输出对应的 .js 文件   

2、TypeScript 的 接口interface 和 类class.

TypeScript 允许在实现接口时只要保证包含接口要求的结构即可,而不必明确地使用 implements 语句。

TypeScript 的 类 和 接口 可以一起共作,在 类 的 构造函数 的 参数 上使用 public 等同于创建了同名的成员变量。