• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 20 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0029 秒)

1. 使用layaide进行打包,提示如下错误。 [ 100%]

...coped declarations (let, const, function, class) not yet supported outside strict mode   网上搜索答案,有的说是因为在tsconfig中,将target调整成了es6就不可以运行了,但是我的代码使用了一些es6的特性,请问应该如何解决这个问题。 2017-06-04 添加...

来源: Laya_社区 发布时间: 20170604

2. 构建好android studio项目后,debug出错 [ 99%]

...coped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at eval (native) at Document._downloadOk (apploader.js:6059:20) at a...

来源: Laya_社区 发布时间: 20180724

3. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 98%]

...h file as a separate module (similar to 'ts.transpileModule'). */     /* Strict Type-Checking Options */     "strict": true,                           /* Enable all strict type-checking options. */     // "noImplicitAny": true,                 /* Raise error on expressio...

来源: Laya_社区 发布时间: 20190408

4. native ui is not defined [ 77%]

...                                              "use strict";var hall = ui.hall.HallViewUI;                                                                                    ^                                         ...

来源: Laya_社区 发布时间: 20180528

5. 用webpack打包laya会出错 [ 77%]

...ent' of object '#<Window>' 出错的句子是 function(global) {'use strict';var window=window||global;var document=document||(window.document={});                                                                                                  ...

来源: Laya_社区 发布时间: 20170209

6. iOS 真机调试错误 [ 75%]

...出现exception info:[syntaxerror:unexpected use of reserved word 'let' in strictly mode]at line 142,这个js的报错,请教一下这个是什么原因谢谢,直接使用layaIDE构建的工程真机测试报错。求大神指教 附件 : --> 2019-05-21 添加评论 免费帖 --> 分享 微博...

来源: Laya_社区 发布时间: 20190521

7. eval函数接微信时,报第三方错误,找不到这个函数 [ 74%]

...w 赞同来自: eval方法只能在非严格模式中进行使用,在use strict中是不允许使用这个方法的。   网上有个贴子这样说,微信开发是这个原因么?! 2018-07-28 0 0 分享 微博 QZONE 微信 rainbow 赞同来自: http://www.php.cn/xiaochengxu-351447.html   ...

来源: Laya_社区 发布时间: 20180728

8. 生成时选选择分离引擎,也选择了转es5,index.js文件中有空逗号 [ 73%]

...转es5 发布,然后就这样,index.js文件中有很多空逗号 "use strict";window.screenOrientation="sensor_landscape",,,,,loadLib("libs/laya.physics3D.js"),loadLib("js/bundle.js"); 每次都要手动去掉。。。 附件 : --> 2020-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20200423

9. 报错:__glsl is not defined,而且bundle.js出现__glsl [ 72%]

...bundle.js出现__glsl  bundle.js开始代码:(function (__glsl) { 'use strict'; __glsl = __glsl && __glsl.hasOwnProperty('default') ? __glsl['default'] : __glsl; bundle.js结束代码: onConfigLoaded() { //加载IDE指定的场景 GameConfig.startScene && Laya.Scene.open(GameCon...

来源: Laya_社区 发布时间: 20200718

10. 引入Puremvc.js,编译没问题,运行时报错查不到 [ 71%]

...puremvc", [], function()     { var puremvc; (function (puremvc) { "use strict"; //... })(puremvc || (puremvc = {})); }) } //修改为: var puremvc=window.puremvc||(window.puremvc={}); (function(puremvc){ //... })(puremvc || (puremvc = {}))   2019-05-10 0 0 分享 微博 QZONE 微信 为什么...

来源: Laya_社区 发布时间: 20190426