摘要: 1.Class的用法 class Person{ constructor(name, age){ this.name = name; this.age = age; } say(words){ console.log(`${this.name} is saying ${words}.`); } } 阅读全文
posted @ 2021-02-10 11:12 #Friday 阅读(124) 评论(0) 推荐(0)