`

Ext textField 回车 提交

    博客分类:
  • Ext
 
阅读更多

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(){

      方法过程省略...

}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics