Extjs listeners用法

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 20:22:54
Extjs listeners用法

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')
}
})根据不同的控件有不同的事件