摘要: 接口 TS的核心原则之一是对值所具有的结构进行类型检测 接口初探 可选属性 width?: number interface SquareConfig { color?: string width?: number } function createSquare(config: SquareConf 阅读全文
posted @ 2019-06-11 02:35 苏荷酒吧 阅读(186) 评论(0) 推荐(0) 编辑