EXTJS 大小写转化
extjs吧
全部回复
仅看楼主
level 4
Forget_hu 楼主
比如在一个文本框里填值失去焦点之后,小写变成大写。怎么把值变大写?
{
fieldLabel:'SANM P/N',
id:'search_sanm_pn_id',
xtype:'textfield',
name:'search',
listeners :{
'blur': function() {
var sanm=Ext.getCmp('search_sanm_pn_id').getValue();
alert(sanm);
}
}
}
2012年09月20日 02点09分 1
level 4
Forget_hu 楼主

fieldLabel:'SANM P/N',
id:'search_sanm_pn_id',
xtype:'textfield',
name:'search',
listeners :{
'blur': function() {
var sanm=Ext.getCmp('search_sanm_pn_id').getValue();
//Ext.util.Format.uppercase(sanm);
Ext.getCmp('search_sanm_pn_id').setValue(Ext.util.Format.uppercase(sanm));
}
}

2012年09月20日 02点09分 2
1