0
我得到「Uncaught TypeError:無法讀取控制檯中的屬性'空'的錯誤」錯誤,不知道以下代碼有什麼問題。 任何幫助表示讚賞。Uncaught TypeError:無法讀取屬性'空'的空CQ - extjs
<div id='fi-form'></div>
<script>
CQ.Ext.onReady(function(){
var card = new CQ.Ext.Panel({
applyTo : 'fi-form',
title: 'Example Wizard',
layout:'form',
activeItem: 0,
bodyStyle: 'padding:15px',
defaults: {
// applied to each contained panel
border:false
},
// the panels (or "cards") within the layout
items: [{
id: 'card-0',
xtype: 'fileuploadfield',
fieldLabel: 'Photo',
name: 'photo-path',
buttonCfg: ' '
}]
});
});
</script>
我upvoted和接受爲問題是由於buttonCfg空屬性,如你所說。但是這個fileuploadfield仍然只在頁面內容的下面存儲一個文件。如果上傳新文件,則會覆蓋現有文件。如何將多個文件存儲在內容/大壩位置而不是頁面內容位置, – Sri