hackftz

bits change world

深入理解TypeScript——文档篇之基础类型

Posted on 2020-09-28 18:26  hackftz  阅读(86)  评论(0编辑  收藏  举报
一、布尔 let isDone: boolean = false 二、数字 TypeScript里的所有数字都是浮点数。 这些浮点数的类型是 number。支持二、八、十、十六进制。 let decLiteral: number = 6; let hexLiteral: number = 0xf00