摘要: 在TS中interface和后端语言如c#中的概念是不一样的,在TS中interface相当于定义了一种类型,是设置自定义类型的方式,区分与基础类型(number、string等),当定义变量时,就可以设置该变量为已经设置的interface类型,如下: interface IPerson { fi 阅读全文
posted @ 2022-10-20 17:38 路鸣 阅读(1443) 评论(0) 推荐(0) 编辑