大约有 1,033 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0062 秒)
...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
...-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
...%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
....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
...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
...导入的JS文件怎么访问 laya这边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论 ...
来源: Laya_社区 发布时间: 20180428
...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
...IDE插件开发说明一、插件能力二、插件运行环境2.1 在Laya.Script中使用本地能力2.2 UI进程脚本和Scene进程脚本通讯的方式2.3 预览运行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspec...
来源: Laya3.0_文档 发布时间: 20250214
...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
...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