Please enable JavaScript.
Coggle requires JavaScript to display documents.
TypeScript(阮一峰) (基础类型 (数组 (元素类型+[] eg: let pets:string[]=["…
TypeScript(阮一峰)
基础类型
数组
元素类型+[] eg: let pets:string[]=["cat","dog","fish"]
泛型数组 eg:let pet:Array<string>=["cat","dog","fish"]
-
-
枚举
enum Color {Red, Green, Blue}
enum Color {Red = 1, Green = 2, Blue = 4}
-
-
-
-
-
-
-
-
-
-
-
-