extjs 事件监听 三种方式

xtype : 'textarea',  
name : 'dataSetField',  
labelSeparator:'',  
fieldLabel:'',  
hideLabel: true,  
allowBlank: true,  
height: mainPanelHeight*0.8,  
anchor:'99%',  
listeners:{'blur':function(){  
   alert(1);  
}}
gridPanel.on('rowdblclick',function(gridPanel,_rowIndex,e){  
  alert(2);  
} 
gridPanel.addListener('rowclick',function(){  
 alert(3)}  
);  

 

posted @ 2013-09-13 18:09  残星  阅读(3179)  评论(0编辑  收藏  举报