小小查了一下 TS中只继承部分属性的方法 可以用Omit 比如type Student = Omit<Person,"name">
点赞 2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务