1、es6类的继承:
class Father{
constructor(){
this.xx = "A";
this.dna = "染色体";
}
}
class Child extends Father{
constructor (){
super();
this.name = "euanxiaohua"
this.age = 18
}
}
const child = new Child()
console.log(child)