1.super指向基类原型prototype 范围:普通方法
class smile { constructor() { } boy() { alert('hey'); } } class sun extends smile { aa() { super.boy(); } } var bb = new sun(); bb.aa(); //hey
2.super指向基类构造函数constructor
class A { constructor() { alert(this); //返回实例对象B } } class B extends A { constructor() { super(); } } new B(); //B