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

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

261. 怎么在模拟点击事件 [ 66%]

...pt="image/*" id="file" type="file" /> <script> function button1(){ document.getElementById('file').click(); } 这是一个上传图片的input,但是我在layabox的某个function中写 Browser. document.getElementById('file').click(); 或者 __JS__(' documen...

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

262. LayaAir中怎么使用node.js 的 socket.io [ 66%]

...-19 16:47 1.客户端bin目录下添加socket.io.js 2.inddex.html引入<script src="socket.io.js"></script> (https://github.com/socketio/so ... r/dist) 3.在src目录下添加ts接口文件 socket.io-client.d.ts (https://github.com/DefinitelyT ... client) 4.在需要使用的...

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

263. 发布的时候,报错 [ERROR] Cannot read property 'dom_parser' of undefined [ 65%]

...%W@GJ$ACOF(TYDYECOKVDYB.png1.6.1.200~202/game/cocos/cocos2d-x-lite/cocos/./scripting/js-bindings/manual/jsb_global.cpp, 931): initWithImageFile: /data/user/0/com.vivo.hybrid/app_reso           [ERROR] (/opt/jenkins/workspace/vivo_vfile:///C:\Users\74741\AppData\Roaming\Tencent\QQ\Temp\%...

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

264. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 65%]

....layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&catego...

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

265. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...Image: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwa...

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

266. Laya转小游戏导入的JS文件怎么访问 [ 65%]

...导入的JS文件怎么访问 laya这边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论 ...

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

267. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 65%]

...vate loadJs(jsPAth, fun) { var new_element1 = document.createElement("script");//创建新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaNative不支持 new_element1.src = jsPAth documen...

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

268. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...IDE插件开发说明一、插件能力二、插件运行环境2.1 在Laya.Script中使用本地能力2.2 UI进程脚本和Scene进程脚本通讯的方式2.3 预览运行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspec...

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

269. as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? [ 64%]

...e" style="width:100px; height:100px; margin-top:15px;"></div> <script type="text/javascript"> var qrcode = new QRCode(document.getElementById("qrcode"), { width : 100, height : 100 }); function makeCode (_qrchr) { qrcode.makeCode(_qrchr); } makeCode("asfasdfas5151a31fsefasefsafe"); &l...

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

270. 最新版LayaAir IDE 2.2.0beta4的几个问题 [ 64%]

...TypeError: Cannot read property 'enable' of undefined preload.js:55 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/libs/laya.core.js:22147:39) TypeError: Cannot read property 'enable' of undefined laya.core.js:22147 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/lib...

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