转自:https://blog.csdn.net/qiu512300471/article/details/17415675/
1、Html文本框
如:<input type="text" name="test" id="test" >
获取值的方式为:
var tValue = Ext.getDom('test').value;
或者
var tValue = document.getElementById('test').value
2、ExtJs的组件
如:{
id:'test',
xtype:'textfield',
fieldLabel:' 测试',
name:'test',
370
}
获取值的方式为:
var tValue = Ext.getCmp('test').getValue()