使用cc.Class的继承时, 非ctor函数, 为啥不能调用this._super()

如题, 报错如下:

你能不能贴一下脚本代码,父类怎么声明的方法,子类怎么声明的方法,this 是否存在绑定问题

另外也可以试一下用 js 原生的 prototype 是否可以调用,参考:

http://www.cocos.com/docs/creator/scripting/reference/class.html#--13

父类的


子类的

不好意思, 找到问题了, 原来Registery忘了module.exports , 一直以为做了这步的.

除了Component, 其它自定义类每次都要写这个moudle.exports感觉很伤