大约有 85 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
...ort xx from "xx"的方式,所有IDE内置cjs模块都可以通过IEditor.require或者IEditorEnv.require去引用。 //可以通过import导入node内置模块 import fs from "fs"; import path from "path"; //也可以通过require const fs = IEditor.require("fs"); const sharp = IEditor.require("sh...
来源: Laya3.0_文档 发布时间: 20251010
...用LayaIDE来创建项目,因为要使用LayaAir引擎的库文件。 ## requirejs 从requirejs官方下载库文件,目前的最新版本是2.3.4,这是下载链接[http://requirejs.org/docs/rele ... re.js][lib]。把下载的库文件放入`./bin`目录,并且在index.html增加文件引...
来源: Laya_社区 发布时间: 20170817
...的报错Uncaught ReferenceError: loadLib is not defined at index.js:11 at require (WAGameSubContext.js:3) at subcontext.html:11 开放域代码到底怎么发布到主域呢 Max.魚魚魚鱼魚魚 • 2019-02-16 10:11 楼主问题解决了吗?方便的话,能分享一下2.0制作排行榜的dem...
来源: Laya_社区 发布时间: 20181001
...内容: package awesomepackage; message AwesomeMessage { required string awesomeField = 1; } 放在laya/proto下面,proto这个文件夹没有请自己创建。 2、在bin下的index.html里的这个位置,看粗体部分,protobuf.js在项目里已经存在了,不...
来源: Laya_社区 发布时间: 20170216
...ble rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The hit area takes precedence over width and height of node as the non-penetrable mouse collision area. * Note that for UI object nodes with a ...
来源: Laya_社区 发布时间: 20250825
...不到protobufjs这个模块 2 导出的.js文件也报错var $protobuf = require("protobufjs/minimal");括号内的模块也是找不到 请问您那是怎么弄的? 2018-03-21 0 2 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 可以参考下附件中的Demo TSimportRequ...
来源: Laya_社区 发布时间: 20171115
...ength % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1; return Math.sqrt(dx*dx+dy*dy...
来源: Laya_社区 发布时间: 20241008
...方库,报错找不到文件 Laya2.0 在Main.ts里:import protoAll = require("../libs/protoAll"); var pCls = protoAll.com.bee.protobuf.ClimbingTowerInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true; 用了第三方库prot...
来源: Laya_社区 发布时间: 20190227
...com.layabox.run.*//LayaCache//appCache/da25d557/filetable.txt I/LayaBox: require(/sdcard/layabox/scripts/config.js) I/LayaBox: found the file in the package:scripts/config.js I/LayaBox: JSRuntime::callMethod {} demo.J*ridge bgColor JSRuntime::callMethod {} demo.J*ridge setFontColor I/LayaBox...
来源: Laya_社区 发布时间: 20210305
...ya前缀"]; }else{ prevTasks = ["替换Laya前缀"] } const fs = require("fs"); function readFile(path) { if (fs.existsSync(path)) { return fs.readFileSync(path, "utf-8"); } return null; } gulp.task('替换Laya前缀', function(){ ...
来源: Laya_社区 发布时间: 20190128