記錄一下:
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()