this._textObj =
new cc.Class.extend({
ctor:
function(){
this._sprite =
new cc.Sprite(cc.spriteFrameCache.getSpriteFrame(‘loading.png’));
},
update:
function(){
},
})(); // 报错
this._textObj =
new game.Hero();// 不报错Hero也是用cc.Class 继承的,不明白,求解释