代码如下:
var restartButton = cc.ControlButton.create(cc.Sprite.create(res_RestartButton));
restartButton.setAnchorPoint(0 ,0);
restartButton.setPosition(
this._winSize.width / 2,
highScoreBackSprite.getPosition().y
);
this.addChild(restartButton);
调试的时候出现Uncaught TypeError: Cannot call method ‘create’ of undefined