1. 如何修改 panel 中的html 值
对panel 设置 id, 使用: Ext.getCmp(' id ').update(html); 来修改html
2. 修改 items 中的值
var pane = new Ext.Panel({
id:"contnet",
fullscreen: true,
layout: {
type: 'vbox',
align: 'stretch'
},
defaults: {
flex: 1
},
items: []
});
// var panel = Ext.getCmp('content');
// pane.removeAll();
pane.items.each(function(item){
panel.remove(item)
});
pane.insert(0, carousel1)
pane.doLayout();
3.布局: