Extjs listeners用法

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/16 20:47:26
Extjslisteners用法Extjslisteners用法Extjslisteners用法表示监听,写一个例子你就知道了:Ext.create(''Ext.button.Button'',{text

Extjs listeners用法
Extjs listeners用法

Extjs listeners用法
表示监听,写一个例子你就知道了:
Ext.create('Ext.button.Button',{
text:'click',
listeners:{click:function(){
alert('hellow')
}}
})
当然他的意思和下面是一样的
Ext.create('Ext.button.Button',{
text:'click',
handler:function(){
alert('hello')
}
})根据不同的控件有不同的事件