它在这里定义
var CMenu = cc.Sprite.extend({
onClickCallback: null,
onClick: function (callback) {
this.onClickCallback = callback;
},
handleTouches: function (touch, evt) {
(this.hovered && this.onClickCallback) && this.onClickCallback();});
它在这里被调用
backMenu.onClick(function () {
window.location.href = "http://www.test.com";
});
是this.onClickCallback = this.onClickCallback()
?