记录一下:

ExtJs获取文本框中值的几种方式

EXTHTML
1、Html文本框

如:
获取值的方式为:
var tValue = Ext.getDom('test').value;
或者
var tValue = document.getElementById('test').value
2、ExtJs的组件
如:{
id:'test',
xtype:'textfield',
fieldLabel:'  测试',
name:'test',
width:370
}
获取值的方式为:
var tValue = Ext.getCmp('test').getValue()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2021-11-30
  • 2022-01-18
相关资源
相似解决方案