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

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

1. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 100%]

....1 声明的概述 d.ts类型定义文件主要有以下几种语法: - `declare var\let\const ` 声明全局变量或常量 - `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace...

来源: Laya2.0_文档 发布时间: 20210715

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

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

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

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

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

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

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

...,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

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

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

6. zip更新(TypeScript-LayaNative原生服务-LayaNative进阶) [ 82%]

...0无限重试) * @param opttimeout 超时时间(建议足够大) */ declare var downloadBigFile:(url:string, local:string, onprog:(total:number,now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; ``` * 处理zip文件的ZipF...

来源: Laya2.0_文档 发布时间: 20210714

7. zip更新 · LayaAir3.0文档 · LAYABOX [ 82%]

...0无限重试) * @param opttimeout 超时时间(建议足够大) */ declare var downloadBigFile:(url:string, local:string, onprog:(total:number,now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; 处理zip文件的Z...

来源: Laya3.0_文档 发布时间: 20230303

8. D.TS访问问题 [ 81%]

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

9. LayaEnv_API3.0 [ 75%]

...ies Static afterInit afterInit: () => void Defined in LayaEnv.ts:8 Type declaration (): void Returns void Static beforeInit beforeInit: (stageConfig: IStageConfig) => void Defined in LayaEnv.ts:7 Type declaration (stageConfig: IStageConfig): void Parameters stageConfig: IStageConfig Returns vo...

来源: Laya3.0_api 发布时间: 20231115

10. import Event = laya.events.Event; 报错 [ 72%]

...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