摘要:
###接口标识符 interface Swim { swimming: () => void } //作为标识符 const a: Swim = { swimming() { return 'sss' } } console.log(a); ###类实现接口 interface Swim { swi 阅读全文
摘要:
###继承 class Person { name: string; constructor(name: string) { this.name = name; } } class Student extends Person { constructor(name: string) { super( 阅读全文