texture-util.js:48 Uncaught TypeError: tex.once is not a function
at Object.loadImage (texture-util.js:48)
at cc_SpriteFrame._loadTexture (CCSpriteFrame.js:455)
at cc_SpriteFrame.setTexture (CCSpriteFrame.js:444)
at cc_SpriteFrame.ctor (CCSpriteFrame.js:225)
at new cc_SpriteFrame (eval at _createCtor (CCClass.js:609),
7)
at loong.setSpriteFrames (loong.js:79)
at shooter.createLoong (shooter.js:269)
at shooter. (shooter.js:163)
at CallbackTimer.32.proto.trigger (CCScheduler.js:241)
at CallbackTimer.32.proto.update (CCScheduler.js:207)
var url = cc.url.raw(‘resources/loong/loong.png’);
this.loongImage.spriteFrame = new cc.SpriteFrame(url);
用最版本,这行代码报上面的错,有什么办法解决不?