Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

customEventData 传0 怎么变成 undefined了?

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>