摘要: TypeScript 高级类型 class 类 类型兼容性 交叉类型 泛型 和 keyof 索引签名类型 和 索引查询类型 映射类型 class 类 class Person { age: number //不加类型 默认为 any 类型 gender = '男' } const p = new P 阅读全文
posted @ 2022-11-27 00:29 东八区 阅读(46) 评论(0) 推荐(0)