05 2021 档案

摘要:继承 class Animal { name: string; constructor(theName: string) { this.name = theName; } // 方法的默认参数 move(distanceInMeters: number = 0) { console.log(`${t 阅读全文
posted @ 2021-05-05 16:33 YAN-YAN 阅读(48) 评论(0) 推荐(0)
摘要:接口概述 function printLabel(labeledObj: { label: string }) { console.log(labeledObj.label); } let myObj = { size: 10, label: "Size 10 Object" }; printLab 阅读全文
posted @ 2021-05-05 14:21 YAN-YAN 阅读(92) 评论(0) 推荐(0)