新手问题

properties: {
btn:cc.Button,
index :0,
},

// LIFE-CYCLE CALLBACKS:

 onLoad () {

    this.btn.node.on("click",this.onbtnClick,this);
    this.btn.node.on("click",this.onbtnClick,this);

    this.btn.node.on("click",this.onbtnClick,this);
    
 },

start () {

},
onbtnClick()
{
    this.index ++ ;
    console.log(this.index);
},

上面这段代码点击按钮index会不会增加和输出三次

按钮有这样的写法吗?

有的啊

查了一下确实有,我没使用过