clsr_dd

2019年11月5日

typescript interface 接口

摘要: //interface // 接口的原理 function createPerson(person:{name:string,sex:boolean}){ console.log(person.name+person.sex) } //我们传入的对象参数实际上会包含很多属性,但是编译器只会检查那些必 阅读全文

posted @ 2019-11-05 21:50 clsr_dd 阅读(316) 评论(0) 推荐(0) 编辑

导航