typescript interface 接口
摘要://interface // 接口的原理 function createPerson(person:{name:string,sex:boolean}){ console.log(person.name+person.sex) } //我们传入的对象参数实际上会包含很多属性,但是编译器只会检查那些必
阅读全文
posted @ 2019-11-05 21:50
posted @ 2019-11-05 21:50
posted @ 2019-11-04 22:57
posted @ 2019-11-03 21:44
posted @ 2019-11-03 21:25