摘要: 一、基础 // es6 普通的一个类 // 构造函数为实例添加成员,类的所有方法都定义在类的prototype属性,即原型上面。 class Animal { name constructor(name, age){ this.name = name } move(distance){ consol 阅读全文
posted @ 2020-11-26 15:28 yxl87 阅读(92) 评论(0) 推荐(0) 编辑