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

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

1. 报错问题Uncaught SyntaxError: Identifier 'DOMAIN' has already been declared [ 100%]

报错问题Uncaught SyntaxError: Identifier 'DOMAIN' has already been declared Uncaught SyntaxError: Identifier 'DOMAIN' has already been declared 2018-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 lambun...

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

2. 自定义declare module,编译的时候报错找不到 [ 98%]

自定义declare module,编译的时候报错找不到 不知道什么原因 附件 : --> 2020-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

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

...,debug出错 I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped 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 ...

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

4. laya 2.x BUG ?? 编译后 SyntaxError: for-in loop head declarations may not have [ 95%]

laya 2.x BUG ?? 编译后 SyntaxError: for-in loop head declarations may not have 这个和标准有关   https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_for-in_initializer   我代码里没写错 代码里 是这个形式   for(var x in list){ xx } 但是编译...

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

5. D.TS访问问题 [ 86%]

D.TS访问问题 declare module common_lib{ class ByteArray extends com.tengxun.utils.ByteArray{} class ParserUtil extends com.utlis.ParserUtil{} class MathR extends com.utlis.MathR{} } 我是仿照layaAir.d.ts来写的,这些代码上面还有ByteArray这些类的declare。奇怪的是: declar...

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

6. import Event = laya.events.Event; 报错 [ 76%]

...e%3A/Web/GameA/client/src/GameMain.ts' severity: '错误' message: 'Import declaration conflicts with local declaration of 'Event'' at: '5,1' source: 'ts' 项目中没有其他地方写这个import, 但这个地方说定义重复 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

7. 底层定义了一个IForceRender接口,Laya.IForceRender 却没有相关代码 [ 76%]

...me:Number):Number;      }然后进行编译,能在LayaAir.d.ts生成 declare module laya.utils {      /**      * @private <code>IDestroy</code> 统一执行接口。      */     interface IForceRender{         isFinished:Boolean;         is...

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

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

... JSX code generation: 'preserve', 'react-native', or 'react'. */     // "declaration": true,                   /* Generates corresponding '.d.ts' file. */     // "sourceMap": true,                     /* Generates corresponding '.map' file. */     // "outFile": "./",    ...

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

9. laya.display.GraphicAnimation [ 64%]

...nimation display里面没有识别到这个需要怎么改动 附上源码 declare module laya.editorUI { /** * Graphics解析器 */ class GraphicParser extends laya.display.GraphicAnimation { protected _getTextureByUrl(url: string): string; static parseAnimationData(aniData: any): any; } } 2020-07-...

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

10. 如何用ts对引擎类进行方法扩展 [ 60%]

...   一般的方法扩展,对Number类型添加thousandsSeperator:  declare global { interface Number { thousandsSeperator(): String; } } Number.prototype.thousandsSeperator = function(): string { return Number(this).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); } export {};  我用同样...

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