class MusicPlayer { constructor(){ this.type = '123'; } } class A extends MusicPlayer { constructor(){ super(); } print(){ console.log('11111',this.type); } } let a = new A(); a.print();