首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

extjs 4.1.1 controller 监听button的有关问题

2013-01-11 
extjs 4.1.1 controller 监听button的问题我想在controller里监听一个window下的form中的button,可是监听

extjs 4.1.1 controller 监听button的问题
我想在controller里监听一个window下的form中的button,可是监听不到click事件,请问该怎么做? extjs?controller
[解决办法]
code=javascript][/code]
new Ext.panel.Panel({
    width: 400,
    height: 200,
    dockedItems: [{
        xtype: 'toolbar'
    }],
    listeners: {
        click: {
            element: 'el', //bind to the underlying el property on the panel
            fn: function(){ console.log('click el'); }
        },
        dblclick: {
            element: 'body', //bind to the underlying body property on the panel
            fn: function(){ console.log('dblclick body'); }
        }
    }
});[

热点排行