跳至内容
菜单
此问题已终结
3768 查看
class FavoriteMenu extends DropdownMenu {
 constructor() {
super(...arguments);
this.model = useModel('searchModel');              this.state.deletedFavorite = false;
}
}

I want to extend the constructor of `FavoriteMenu` .. like adding console.log after super(...arguments)

So the result would be redefining the main constructor in  custom file but the result is obtained in the main file

I've tried `FavoriteMenu.include` and `FavoriteMenu.prototype.cconstructor`but they didn't work


any hint?

形象
丢弃
相关帖文 回复 查看 活动
2
3月 24
7008
0
1月 21
8350
2
6月 22
11440
0
10月 22
571
1
8月 21
4465