class Esc {
constructor(id, region, name) {
this.id = id;
this.region = region;
this.name = name;
}
buy() {
return `https://xxxx.com?id=${this.id}®ion=${this.region}&name=${this.name}`;
}
}
class SubEsc extends Esc {
constructor(id, region, name) {
// Uncaught ReferenceError:Must call super constructor in derived class before accessing 'this' or returning from derived constructor
//this.instance = name;
super(id, region, name);
this.instance = name;
}
get config() {
return this
}
set props(value) {
console.log(value, 333)
}
}
let subesc = new SubEsc(1, 'xm', 'wml')