0
我是新來的sencha touch,我嘗試創建一個容器,分爲3個部分。第二部分應該有一個旋轉木馬組件。這是我的代碼:Sencha Touch - 容器內的傳送帶
var con = new Ext.Container({
width: '100%',
height: '100%',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
{
flex: 1,
html: 'First',
items: [
{
xtype: 'carousel',
defaults: {
layout: 'hbox'
},
items: [
{
html: '1',
cls: 'card'
},
{
html: '2',
cls: 'card'
}
]
}
]
},
{
flex: 2,
html: 'Second'
},
{
flex: 3,
html: 'Third'
}
]
});
結果顯示除了旋轉木馬之外的3個組成部分。我做錯了什麼?非常感謝。