关于EXT的combobox

在做项目时发现ComboBox里的输入值,后台取不到。google一把找到了。记录下具体做法。

var cb=new Ext.form.ComboBox({   
    triggerAction: 'all',   
    transform:'group',   
    width:272   
});   

方法1. http://www.iteye.com/problems/475
cb.on('blur',function(){   
    this.setValue(this.el.dom.value);   
});

方法2: http://hi.baidu.com/flying_all/blog/item/426443d7b8b442dba144df9e.html
cb.on('keydown', function(e){
    this.setValue(this.el.dom.value);
});



你可能感兴趣的:(html,Google,ext,Blog)