清除转盘中的所有元素-Sencha

| Dows谁知道如何删除sencha轮播中的所有元素???
carousel = new Ext.Carousel({
    fullscreen: true,
    defaults: {
        cls: \'carousel-item\'
    },
    items: [{
            id:\'tab-1\',
            html: \'\',
            cls: \'card card1\'
        },{
            id:\'tab-2\',
            html: \'<p>Clicking on either side of the indicators below</p>\',
            cls: \'card card2\'
        },{
            id:\'tab-3\',
            html: \'Card #3\',
            cls: \'card card3\'
        }]
});
非常感谢     
已邀请:
        您只需一行代码即可清除轮播中的所有组件:
carousel.removeAll();
希望这可以帮助。     

要回复问题请先登录注册