大约有 118 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0039 秒)
... 分享 微博 QZONE 微信 朝俊 赞同来自: game.js 入口文件里 require("/js/laya/weapp-adapter.js");要放在第一处 2018-12-27 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 徐飞 相关问题 TS项目使用matter.js库...
来源: Laya_社区 发布时间: 20181217
在layaair2.3版本中报ReferenceError: require is not defined有没有什么办法解决呢? 附件 : --> 2021-01-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20210107
使用protobuf的时候,require报错 用工具生成自己的proto.js 之后,把他和库文件protobuf.js 放在一个目录下了。 proto.js里面,第一行代码就是:var $protobuf = require("protobuf"); 运行的时候报错:require is not defined 请教各位大神,这个怎...
来源: Laya_社区 发布时间: 20200325
... 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来自: require("weapp-adapter.js"); require("./bytebuffer.js") window.ProtoBuf = require("./protobuf.js") require("./code.js"); game.js 里面这样引入试试。 2018-03-13 0 1 分享 微博 QZONE 微信 xiongxin11 赞同来自: ...
来源: Laya_社区 发布时间: 20180313
嵌套类型的protobuf报错 message LoginResult { required int32 result = 1; optional string authToken = 2; repeated ServerInfo serverList = 3; optional int32 platformErrorCode = 4; optional string par1 = 5; optional string par2 = 6; optional string recommendedUId = 7; } message Ser...
来源: Laya_社区 发布时间: 20170118
ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...
来源: Laya_社区 发布时间: 20200409
...ow.Parser,按照我能搜到的代码,你们的建议是 window.Parser=require('./domparser.js'); 但是, 我下载的laya库文件中只有 domparserinone.js如果 window.Parser=require('./domparserinone.js')会导致报错WAGame.js:3 gameThirdScriptErrorSaxO is not definedReferenceError: Sa...
来源: Laya_社区 发布时间: 20180516
...s/entities" is not defined Error: module "libs/entities" is not defined at require (http://127.0.0.1:13507/game/__ ... :78730) at http://127.0.0.1:13507/game/__ ... 78480 at http://127.0.0.1:13507/game/li ... 52:18 at require (http://127.0.0.1:13507/game/__ ... :78871) at http://127.0.0.1:13507/game...
来源: Laya_社区 发布时间: 20190221
...of swan !== 'undefined') && (typeof swanGlobal !== 'undefined')) { require("swan-game-adapter.js"); require("libs/laya.bdmini.js"); } else if (typeof wx !== 'undefined') { require("weapp-adapter.js"); require("libs/laya.wxmini.js"); } window.loadLib = require; require("index.js"); 2019-01-08...
来源: Laya_社区 发布时间: 20181215
...argv.split("=")[1].replace("/.laya/compile.js", ""); } } [/b] const gulp = require(ideModuleDir + "gulp"); const rollup = require(ideModuleDir + "rollup"); const typescript = require(ideModuleDir + 'rollup-plugin-typescript2');//typescript2 plugin const glsl = require(ideModuleDir + 'rollup-plugin-g...
来源: Laya_社区 发布时间: 20200607