4.1 制作表单 var form = new Ext.form.FormPanel({ title:'form', defaultType:'textfield', buttonAlign:'center', frame:true, width:220, fieldDefaults:{ labelAlign:'right', labelWidth:70 }, tiems:[{ //子组件; fieldLabel:'文本框' //文本框组件; }], buttons:[{ text:'按钮' }