When you create a new form or window using Com.bitc.xmis.ExcelImportWin = Ext.extend (Ext.window, {}), you should add the following Com.bitc.xmis.ExcelImportWin.superclass.initComponent.call (this);
The Ext.extend () function provides a way to directly access the parent class constructor, through SubClass.superclass.constructor.call (this), so that the constructor of the parent class can be called directly, and the first argument of the function is always this, To ensure that the constructor of the parent class works in the scope of the subclass.
For use
var win = new Com.bitc.xmis.ExcelImportWin ({
WIDTH:500,
HEIGHT:120,
...
}); Add property
When using Com.bitc.xmis.ExcelImportWin = new Ext.window ({
WIDTH:500,
HEIGHT:120,
...
}); Do not add com.bitc.xmis.ExcelImportWin.superclass.initComponent.call (this);
Use Var win =com.bitc.xmis.excelimportwin; it's okay.
Some problems in ext.ns (' xxx ') in ExtJS