ext 报'events'为空或不是对象
逍遥哥哥吖 2009-04-16 04:01:50 { //定义一个button,点击时弹出窗口
id:'keyBtn',text:'', iconCls: 'hs-button-search', handler: function() {
if(!winSea){
winSea = info.SearchKeyWordsWindow();
}
winSea.getWindow().show(Ext.get("keyBtn"));
}
//定义窗口
info.SearchKeyWordsWindow = function(){
var tabs = new Ext.Panel({
region : 'center',
defaults : {
autoScroll : true
},
items : [
new Ext.Panel({//关键字搜索信息区
title:'搜索区域',
region:'north',
width:400,
height:200,
layoutConfig:{
animate:true
},
items:[]
}),
new Ext.Panel({//下侧信息区
title:'搜索区域下方预留区域',
width:400,
height:200,
layoutConfig:{
animate:true
},
items:[
]
})
]
});
var nav = new Ext.Panel({
// title : '左侧预留区',
region : 'west',
split : true,
width : 200,
collapsible : false,
margins : '3 0 3 3',
cmargins : '3 3 3 3'
});
var win = new Ext.Window({
title : '关键字搜索',
closable : true,
width : 600,
height : 350,
border : false,
plain : true,
layout : 'border',
items : [nav,tabs]
});
return{
getWindow:function(){
return win;
}
}
}
希望得到的布局,自己在ext\examples\window下做的例子能实现,但拷贝到项目中,稍微改变了下,就出现问题一直报'events'为空或不是对象