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

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

1. 为什么字符串不能连接? [ 100%]

为什么字符串不能连接? private getRandomColor():String { let arr:Array<String>=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]; let str:String="#"; for(let i:number=0;i<6;i++){ let index:number=arr.length*Math.random(); str+=arr[index];//在IDE里面这句报...

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

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

...    // "outFile": "./",                       /* Concatenate and emit output to single file. */     "outDir": "build",                        /* Redirect output structure to the directory. */     "rootDir": "src",                       /* Specify the root di...

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

3. 编译时候报错 如下 怎么解决呢 [ 92%]

...: number, offsetX?: number, offsetY?: nu...'. Types of parameters 'mipMap' and 'offsetX' are incompatible. Type 'number' is not assignable to type 'boolean'. 2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

4. 升级到1.78beta版后,包编译错误 [ 91%]

... offsetX?: number, offsetY?: nu...'.       Types of parameters 'mipMap' and 'offsetX' are incompatible.         Type 'number' is not assignable to type 'boolean'.   2017-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

5. 苹果上架直接导致账号被调查。。。 [ 90%]

... app or service - Misleading app content - Engaging in inauthentic ratings and reviews manipulation - Providing misleading customer support responses - Providing misleading responses in Resolution Center - Engaging in misleading purchasing or bait-and-switch schemes - Engaging in other dishonest or ...

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

6. 请问 Laya.Media 在 2.0 中是被废弃了还是被什么替换了? [ 83%]

... 在代码中执行如下语句,并运行在浏览器中。Both Chrome and FireFox,Mac 系统,报错 Laya.Media is undefined。 Laya.Media.supported();但是在 LayaAir.d.ts 的类型定义中又是存在的,请问 Laya.Media 在 2.0 中是被废弃了还是被什么替换了?我是按...

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

7. 如何使用vscode编译laya项目 [ 82%]

...Debugger listening on port 48982. Warning: This is an experimental feature and could change at any time. laya_ide_time.require.single.gulp-util: 7.87ms gulp.js:8 laya_ide_time.require.single.pretty-hrtime: 2.2ms gulp.js:8 laya_ide_time.require.single.chalk: 10.4ms gulp.js:8 laya_ide_time.require.sin...

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

8. bind函数的作用 [ 81%]

...this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg An object to which the this keyword can refer inside the new function. * @param argArray A list of arguments to be passed to the new function. */ bind(this: Function,...

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

9. native 1.0.2 连不上wss [ 80%]

...bwebsockets version: 2.3.0 layabox_mac@localhost- NOTICE: IPV6 compiled in and enabled NOTICE: libev support not compiled in NOTICE: libuv support not compiled in NOTICE: Threads: 1 each 2560 fds NOTICE: mem: platform fd map: 20480 bytes NOTICE: Compiled with OpenSSL support NOTICE: Doing SSL librar...

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

10. [0]laya-zip让你的游戏加载速度提升350%!! [ 77%]

...定文件资源。[size=14][code]// Loads the file at the specified path and uses it Laya.loader.create([{ url: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.g...

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