52,792
社区成员




Ext.onReady(function () {
var tb = new Ext.Toolbar({
renderTo: Ext.getBody(),
height: 100
});
tb.addButton([{
id: "test",
text: "save"
}]);
tb.doLayout()});
var tb = new Ext.Toolbar({
renderTo: Ext.getBody(),
height: 100
});
tb.addButton([{
id: "test",
text: "save"
}]);
//tb.remove(tb.items.item(0));
//tb.remove(Ext.fly("test").getEl());
//tb.remove(Ext.get("test").getEl());
tb.remove(Ext.getCmp("test"));
//以上方法都可以
tb.doLayout();