var formUpload = new Ext.form.FormPanel({
baseCls: 'x-plain',
labelWidth: 80,
fileUpload:true,
defaultType: 'textfield',
items: [{
xtype: 'textfield',
fieldLabel: '文 件',
name: 'upload',
inputType: 'file',
allowBlank: false,
blankText: '请导入文件',
anchor: '90%' // anchor width by percentage
}]
});
var upload_left = new Ext.Panel({
items: [formUpload],
......
});这时会报一个“未知的运行时错误”,但是如果直接把formUpload 里的内容写到items里就没事
请问这是为什么
你把formpanel 在放到panel里面的
用意是什么?
还是有其他布局!
width:200,height:200,
items: [formUpload],
......
});