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

转自: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:'&nbsp;&nbsp;测试',
        name:'test',
        370
       }
获取值的方式为:
    var tValue = Ext.getCmp('test').getValue()

原文地址:https://www.cnblogs.com/sharpest/p/7655707.html