4

任何人都知道如何删除 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'
        }]
});

非常感谢

4

1 回答 1

5

您只需一行代码即可清除轮播中的所有组件:

carousel.removeAll();

希望这可以帮助。

于 2011-05-31T15:51:19.913 回答