Ext 通过name获取form表单的值,并设值

取值

formPanel.getForm().findField('name').getValue();
赋值
formPanel.getForm().findField('name').setValue('');
 

Ext4 可以用这个方法取值
formPanel.getForm().getValues()['name'];

猜你喜欢

转载自happyqing.iteye.com/blog/2206800
ext