取值
formPanel.getForm().findField('name').getValue();
赋值
formPanel.getForm().findField('name').setValue('');
Ext4 可以用这个方法取值
formPanel.getForm().getValues()['name'];
本文介绍了使用Ext4进行表单操作的方法,包括如何获取表单字段的值以及如何设置表单字段的值。通过简单的代码示例展示了两种取值方式:一种是利用findField方法结合getValue方法;另一种则是直接使用getValues方法并指定字段名。
取值
formPanel.getForm().findField('name').getValue();
赋值
formPanel.getForm().findField('name').setValue('');
Ext4 可以用这个方法取值
formPanel.getForm().getValues()['name'];

被折叠的 条评论
为什么被折叠?