class PathController {
constructor(){
}
getMainPage(){
alert("getMainPage");
}
setPushState(){
alert("setPushState");
}
}
class MainMenu extends PathController {
constructor(){
// call my PathController here
super();
getMainPage();
setPushState();
}
}
let aMainMenu = new MainMenu();
내 의도는, 내 MAINMENU 생성자에서 내 getMainPage 및 setPushState를 호출하는 것입니다 내가 피곤 this.getMainPage 및 this.setPushState와 그것뿐만 아니라 작동하지 않는 생성자를 확장합니다. 누구든지 내게 전화하는 법을 말해 줄 수 있니?통화 기능은