我试图弄清楚为什么 callParent 不起作用。
这是一些代码:
Ext.define('AM.ArView', {
extend:'Ext.window.Window',
initComponent: function() {
var foo = this;
console.log(foo);
Ext.Ajax.request({
url: 'http://my/awesome/path',
success: function(response, opts) {
console.log(foo);
foo.callParent();
},
failure: function(response, opts) {
console.log('error');
}
});
}
});
错误:未捕获的类型错误:无法读取未定义的属性“超类”
我需要通过 ajax 加载 windows 项目