我有一个在页面加载时创建并在组件管理器中注册的窗口。该窗口设置了 closeAction: 'hide' ,但是当我尝试重新打开它时,我收到一个窗口未定义的错误。使用 ExtJs 3.4
#Initial creation of the window
var comWin = new UserSelectionDialog();
Ext.ComponentMgr.register(comWin);
#Window Class/Config
UserSelectionDialog = Ext.extend(Ext.Window, {
id: 'comWin',
title: 'User Selection',
width: 700,
height: 300,
autoScroll: true,
maximizable: true,
closeAction: 'hide'...
#call to retrieve window
function getCom(){
var comWin = Ext.getCmp('comWin');
alert(comWin.title);
comWin.show();