var name = new Ext.form.TextField({
labelSeparator : '', //laber分割内容
name : 'name',
xtype : 'textfield',
allowBlank : true,
width : 60,
listeners : {
specialkey : function(field, event) { //监听specialkey 事件
if (event.getKey() == event.ENTER) { //当条件成立时,表明是enter键
search();
}
}
}
});
function search(){
方法过程省略...
}