摘要:
class Myset { constructor(iterator) { if (typeof iterator[Symbol.iterator] != "function") { throw new TypeError(" object is not iterable (cannot read 阅读全文
摘要:
class Anamal {//抽象类 constructor(name, age) { //实例本身的属性 if (new.target == Anamal) { throw new Error("抽象类不能直接实例化, 请用该类的子类创建对象"); } this.name = name; thi 阅读全文