示例代码:
var formExample = new Ext.form.FormPanel({ xtype:'form', name:"ContentPublish", items:[ { xtype:'fieldset', title: '考核明细', collapsible: true, checkboxToggle: true, collapsed: true, submitValue:true, name:'scoreDeduct', autoHeight:true, defaultType: 'textfield', items :[{ submitValue:true, name:'Field1', value:'one', fieldLabel: 'Field 1' }, { submitValue:true, name:'Field2', value:'two', fieldLabel: 'Field 2' }, { value:'three', fieldLabel: 'Field 3' } ] } })
p.getForm().getValues()的结果会是
//p.getForm().getValues()结果: { Field1:"one", Field2:"two", ext-comp-1056: "three" }