Javascript 如何在sencha中单击哪个水龙头

Javascript 如何在sencha中单击哪个水龙头,javascript,sencha-touch,sencha-touch-2,carousel,Javascript,Sencha Touch,Sencha Touch 2,Carousel,我有4个图像点击转盘 this.add({ id: 'mainRow-' + index, xtype: 'carousel', flex:1, defaults: { flex:1 }, items: [

我有4个图像点击转盘

               this.add({
                   id: 'mainRow-' + index,
                   xtype: 'carousel',   flex:1,
                  defaults: {
                       flex:1
                   },       items: [
                                    {
                                         html: '<p><img src="image.jpg"></p>'
                                    },
                                    {
                                        html: '<p><img src="image.jpg">
                                    },
                                    {
                                        html: '<p><img src="image.jpg">
                                    }
                                ]
        });

如果用户单击旋转木马,则初始化函数工作。但我必须获得单击的点击。(第一秒第三秒)?。

是的,我可以在一天后完成。这很简单。carousel.getActiveIndex()为我索引当前项目。如果用户单击第一个项目,它将返回0,单击第二个项目,它将返回1…是的,我可以在一天后完成。这很简单。carousel.getActiveIndex()为我索引当前项。如果用户单击第一个项,它将返回0,单击第二个项,它将返回1。。。
control : {
        root: {
            pop  : 'onRootPop',
            push : 'onRootPush'
        },
         "carousel" : {
             initialize : function(carousel){
                 carousel.element.on('tap', function(e, el){
                     // Here you will get the target element
                    // console.log(e.target, el);
                     Logger.log("fassss" + el);
                     EDevlet.app.getController('MainController').showNews();
                 }, this);
             }
         }
    }
},