05 2021 档案
摘要:继承 class Animal { name: string; constructor(theName: string) { this.name = theName; } // 方法的默认参数 move(distanceInMeters: number = 0) { console.log(`${t
阅读全文
摘要:接口概述 function printLabel(labeledObj: { label: string }) { console.log(labeledObj.label); } let myObj = { size: 10, label: "Size 10 Object" }; printLab
阅读全文
浙公网安备 33010602011771号