js基础复习2,class和原型
摘要:定义一个class // 定义class class Student{ constructor(name,number){ // this指向当前构建的实例 this.name=name this.number=number // this.gender='male' } sayHi(){ // 在
阅读全文
posted @ 2020-01-09 11:32
posted @ 2020-01-09 11:32
posted @ 2020-01-09 10:00
posted @ 2020-01-08 16:49