摘要: 在ts中,类型系统被设计为可选的,因此可以认为js就是没有类型声明的ts。 类型注解使用 :TypeAnnotation 语法 原始类型 let num: number; let str: string; let bool: boolean; :number、:string、:boolean都是原始 阅读全文
posted @ 2021-10-12 17:47 wmui 阅读(207) 评论(0) 推荐(0) 编辑