I have the following javascript
var helloworld == cc.layer.extend({
ctor : function() { this._super(); }
init : function() { this._super(); ........}
onmix : function() { this._super(); this.layer.addChild(); }
});
The error I am getting is this doesn't know this._super()
at onmix
function but everywhere else this._super()
is fine. If I don't put this._super()
inside onmix
then it won't know this.layer
object. So how should I fix it?
Thanks.
var helloworld == <...>
Is not valid JS syntax. I think you mean just '=' instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.