我是使用extjs的新手。什么相当于ExtJs3中的this.callParent(args)?它可以在extjs4中工作,但不能在extjs3中工作。谢谢你的帮助
发布于 2017-10-05 19:38:31
在ExtJS3x中,我们使用superclass属性来调用父类方法。例如,要调用Ext.Component的父类构造函数,请使用:
Ext.Component.superclass.constructor.call(this);
另一个例子:
要调用TabPanel父类的initComponent()方法,您可以这样写:
Ext.TabPanel.superclass.initComponent.call(this);
希望这对你有用。
https://stackoverflow.com/questions/46579820
复制相似问题