如何在 extjs 3.2 中设置值
How to set the value in extjs 3.2
我正在使用 extjs 3。我有两个文本字段。我想 setvalue
of first textarea
in second.我正在使用
Ext.getCmp('firstText).getValue()
我通过它获得第一个文本区域的价值。但是当我在第二个文本区域中使用 setValue
时,它失败了。 Setvalue 在 extjs3 中不起作用。我可以使用的替代选项是什么。
谢谢
可以设置字段的value
属性来设置值。
Ext.getCmp('secondText').value = Ext.getCmp('firstText').getValue();
我正在使用 extjs 3。我有两个文本字段。我想 setvalue
of first textarea
in second.我正在使用
Ext.getCmp('firstText).getValue()
我通过它获得第一个文本区域的价值。但是当我在第二个文本区域中使用 setValue
时,它失败了。 Setvalue 在 extjs3 中不起作用。我可以使用的替代选项是什么。
谢谢
可以设置字段的value
属性来设置值。
Ext.getCmp('secondText').value = Ext.getCmp('firstText').getValue();