@enter334714 写道:
var clickEventHandler = new cc.Component.EventHandler();
clickEventHandler.target = this.clickHandlerNode;
clickEventHandler.component = "LoginSevenDay";
clickEventHandler.handler = "onLeftListBtnEvent";
clickEventHandler.customEventData = this.index; //bug 0会变成undefined 处理下
this.button.getComponent(cc.Button).clickEvents[0]=(clickEventHandler); 实测
帖子: 2
参与者: 1