有谁知道如何在 ext js 3.4 中成功调用超类?在我的示例代码中,我似乎无法让超类在面板上工作。
MyWindow = Ext.extend(MyWindowUi, {
initComponent: function() {
MyWindow.superclass.initComponent.call(this);
this.createTextField();
},
createTextField : function() {
var p = new Ext.Panel({
title: 'somepanel',
initComponent: function() {
console.log('init component');
console.log(this);
this.superclass.initComponent.call(this); //NOT WORKING??
}
});
this.add(p);
}
});