Ext.onReady(function(){ var form = new Ext.form.FormPanel({ labelAlign: 'right', title: 'form', labelWidth: 50, frame:true, fileUpload: true, url: 'student?action=load',//fileUploadServlet width: 380,
items: [{ xtype: 'textfield', fieldLabel: '文本框', name: 'file', inputType: 'file'//文件类型 }], buttons: [{ text: '按钮', handler: function() { form.getForm().submit({ success: function(form, action){ Ext.Msg.alert('信息', action.result.msg); }, failure: function(){ Ext.Msg.alert('错误', ......
阅读全文