如图。我觉得这个地方写成 this.name 比较好。然而 this.name 返回的并不是想要的组件名字。
而是 “《node名》SpinBox”
不知道官方这样设计的好处是啥??
你可以定义
var SpinBox = cc.Class({
...
bindfunc (...) {
...
eventHandler.component = cc.js.getClassName(SpinBox);
...
}
...
});
1赞
略绕。
