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

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

51. 小游戏项目 加载有中文的json文件 报错 [ 48%]

... if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; }   2018-06-21 1 1 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 好像中文有问题 英文没问题 2018-01-08 0 1 分享 微博 QZONE 微信...

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

52. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 45%]

...me.fileName const sourceMapContent = JSON.parse(readFileSync(mapFilePath, 'utf8')); const consumer = await new sourceMap.SourceMapConsumer(sourceMapContent); // console.log(frame); // originalPosition不仅仅是行列信息,还有错误发生的文件 originalPosition.source const originalPositio...

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

53. zip更新 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

.../更新自己的root let localHeadStr = await this._frw.read('head.json', 'utf8', true) as string; let localHead = JSON.parse(localHeadStr) as RootDesc; await this._gitfs.setRoot(localHead.root); } catch (e) { } } 实际使用的时候,还要自己实现版本管理,界面,下载进度提示...

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

54. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 41%]

...文件测试", i, fileUrl);         MiniFileMgr.readFile(fileUrl, "utf8", Laya.Handler.create(this, function() {             console.log("加载文件测试1", i, fileUrl);         })); 2、Laya.loader.load() 循环多个文件加载测试,均只能加载第一个文件...

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

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

...件:" + phppath); let phpContent = fs.readFileSync(phppath, { encoding: "utf8" }); //console.log(phpContent); //====修改私有方法名================================================================== //let arr = phpContent.match(/function\s*(\w+)/); let arr = phpContent.match(/private .*?\(/g)...

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