大约有 404 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...c/main/ets/event/HandleMessageUtils.ts添加消息处理代码 /** * 同步事件 * @param eventName 事件名称 * @param data 数据 */ static handleSyncMessage(eventName: string, data: string): string { if (eventName == "syncMessage") { return "sync message from platform"; } return "default sync ...
来源: Laya3.0_文档 发布时间: 20251010
...入场景问题出现在哪呢?? ios原生回调问题 event自定义事件的问题 关于主程序过大的问题 问题状态 最新活动: 2018-07-24 11:00 浏览: 1383 关注: 2 人 Nothing • 2018-07-24 11:03 好的,谢谢,frameOnce原来关键在这里,可以,今天回复速度...
来源: Laya_社区 发布时间: 20180724
请问如何监听html的button元件ontouchstart,ontouchend等事件 如题,我可以如下为button加上onclick的监听事件。this.btn_CloseWebiFrame = laya.utils.Browser.window.document.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); }; oncon...
来源: Laya_社区 发布时间: 20180126
自己创建的box作为tab,为啥没有点击事件啊? var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass...
来源: Laya_社区 发布时间: 20160722
点击事件会导致setTimeout setInterval 延迟执行的问题 我现在在做一个射击游戏, 里面有一个不停的更新里面元素位置的setInterval; 同时页面有需要频繁点击触发发射的功能; 在频繁点击页面的时候动画会明显卡顿帧数并没有变小, 我...
来源: Laya_社区 发布时间: 20170323
QQ里扫一扫打开网页,不响应Laya.Event.FOCUS事件,导致失去焦点后,声音异常 Laya.SoundManager.autoReleaseSound = true Laya.SoundManager.autoStopMusic = true Laya.SoundManager.playSound("sound/bg1.mp3", 0); Laya.stage.on(Laya.Event.FOCUS, null, function(){ console.log("获取...
来源: Laya_社区 发布时间: 20180807
代码创建精灵监听不到事件? var boxstr = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var ...
来源: Laya_社区 发布时间: 20171113
...1.3 工作原理二、Laya.Sokcet通信基础2.1 建立连接的方式2.2 事件监听与处理三、webSocket数据通信实例3.1 字符串数据通信3.2 二进制数据通信3.3 基于Laya.Byte二进制通信四、其它APIWebSocket通信 Author: Charley WebSocket 协议因其全双工、低延...
来源: Laya3.0_文档 发布时间: 20251010
...console.log("click button");}); 请问 这样监听不到button的点击事件吗?如果我创建一个ui.view a a.on 也监听不到吗 2017-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ymsdandan...
来源: Laya_社区 发布时间: 20171128
怎么给List下的每个item中的button添加事件? 如图,我在UI页面做了个List: 现在我每个button都单独写了一个添加事件,很繁琐,尤其是item多的时候特别麻烦,我自己都觉得这个方法特别蠢,请问有没有好一点的方法呀? 下...
来源: Laya_社区 发布时间: 20180817