[]调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined

代码:
var Test = (function(_surper){
   function Test(){
        Test.super(this);
    };
    Laya.class(Test, "Test", _surper);

    return Test;
    
})(ui.TestUI);
 
 
报错Uncaught TypeError: Cannot read property 'call' of undefined
    at Function.<anonymous> (laya.core.js:127)
    at new Test (Test.js:3)
    at onAssetLoaded (LayaUISample.js:64)
    at EventHandler.__proto.runWith (laya.core.js:681)
    at ResInfo.__proto.event (laya.core.js:460)
    at LoaderManager.__proto._endLoad (laya.core.js:11993)
    at Loader.onLoaded (laya.core.js:11972)
    at EventHandler.__proto.runWith (laya.core.js:681)
    at Loader.__proto.event (laya.core.js:460)
    at Loader.__proto.endLoad (laya.core.js:11621)
(anonymous) @ laya.core.js:127
Test @ Test.js:3
onAssetLoaded @ LayaUISample.js:64
__proto.runWith @ laya.core.js:681
__proto.event @ laya.core.js:460
__proto._endLoad @ laya.core.js:11993
onLoaded @ laya.core.js:11972
__proto.runWith @ laya.core.js:681
__proto.event @ laya.core.js:460
__proto.endLoad @ laya.core.js:11621
Loader.checkNext @ laya.core.js:11650
__proto.complete @ laya.core.js:11610
__proto.onLoaded @ laya.core.js:11582
onload @ laya.core.js:11473
_source._source.onload @ laya.core.js:18426
已邀请:

cuixueying

赞同来自:

麻烦提供一个可以运行的例子吧,我们看下,谢谢!

要回复问题请先

商务合作
商务合作