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

大约有 232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)

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

...      /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */     /* Experimental Options */     // "experimentalDecorators": true,        /* Enables experimental support for ES7 decorators. */     // "emitDecoratorMe...

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

222. 微信小游戏提审后,提示说代码侵权 [ 38%]

...意义的代码 */ const LINENUM = 20; const LINENUM_RADOM = 13; var fs = require('fs'); var path = require('path'); var filterFils = ["Base64", "ThemeAdapter","AssetAdapter", "Platform", "wxgamesdk"];//忽略文件 var filterDirs = ["xxxx"];//忽略目录 var traceName = "xxxx";//添加的干扰代...

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

223. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 37%]

...s脚本文件,脚本内容参照如下: ```json const {watch ,task } = require("gulp"); const {exec} = require("child_process"); function compile(cb) { //执行编译命令 layaair2-cmd compile let process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); ...

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

224. 关于LayaBox启动的问题。 [ 37%]

...lzz.platform/cache/LayaCache/localstorage/logo/logo.png I/LayaBox (12689): require(/sdcard/layabox/scripts/config.js) I/LayaBox (12689): found the file in the package:scripts/config.js I/LayaBox (12689): Download [ ]:http://192.168.137.1/public/sh ... 2.471 E/LayaBox (12689): download image file err...

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

225. 微信小游戏分包实战(JavaScript-小游戏适配文档-微信小游戏) [ 33%]

...3所示。 game.js里引入分包js路径,如下所示。 ```javascript require('b.js'); ``` #### 4、开始分包编码 上一步创建完分包目录与分包文件,那么可以开始进行分包编码了。 首先在原则上,既然要做分包,那么**主包与分包的逻辑关联性要...

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

226. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 32%]

...就好了。game.js里引入分包js路径,如下所示。 ```javascript require('b.js'); ``` #### 4、开始分包编码 上一步创建完分包目录与分包文件,那么可以开始进行分包编码了。 首先在原则上,既然要做分包,那么**主包与分包的逻辑关联性...

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

227. 打CPK包在手机上运行会白屏,手机测试型号VIVO1419L。 [ 31%]

...len:643667 10-13 17:31:15.901 6514-7441/com.vivo.vs W/AudioManagerAndroid: Requires BLUETOOTH permission 10-13 17:31:15.951 6514-7452/com.vivo.vs W/chromium: [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation 10-13 17:31:15.961 6514-6514/com.vivo.vs W/chro...

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

228. 打包成APK运行一半崩溃 [ 31%]

...cess, singleProcess=true 04-11 11:17:09.332    8591-8637/? W/cr_media﹕ Requires BLUETOOTH permission 04-11 11:17:09.430    8591-8591/? W/cr_AwContents﹕ onDetachedFromWindow called when already detached. Ignoring 04-11 11:17:09.442    8591-8591/? I/layaConch5﹕ m_interceptKey OK! 04-11 11:...

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

229. 缓存工具-layadcc · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

....26:6666/head.json"; var dccUrl = null; var mapToDCC = null; let layadcc = require('layadcc.js').layadcc; let dcc = new layadcc.LayaDCCClient(dccUrl || getBaseUrl(dccHead)); dcc.pathMapToDCC = mapToDCC || getBaseUrl(appUrl); dcc.init(dccHead, null).then((ok) => { if (ok) { //如果初始化成功...

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

230. socket大型项目回调 [ 27%]

...r proto:any = protos[name]; switch (proto.option) { case "optional": case "required": buffer.writeArrayBuffer(this.encodeTag(proto.type, proto.tag)); this.encodeProp(msg[name], proto.type, protos, buffer); break; case "repeated": if (!!msg[name] && msg[name].length > 0) { this.encodeArray...

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