大约有 36 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0027 秒)
List的selectHandler 点击同一个item只能触发一次回调 点了一个item A回调后,再点item A就不会回调. 点另一个irem B后再点item A,,item A才会回调. handler的第4个参数once设的是false 附件 : --> 2019-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20190305
list的selectHandler属性连续点击同一个item不能重复接收事件 使用的是引擎示例中的代码:https://layaair.ldc.layabox.com/demo/?category=2d&group=UI&name=List list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); ...
来源: Laya_社区 发布时间: 20180507
...事件的执行。 onAwake(): void { console.log("Game Start"); this.Tab.selectHandler = Laya.Handler.create(this,(index:number)=>{ console.log(index); }) } Tab会侦听用户点了某个标签,并从对象池创建一个处理器。 2,clear(): Handler 清理对象引用 this.Tab.selectHa...
来源: Laya3.0_文档 发布时间: 20251010
List数据源的格式问题导致无法响应List的SelectHandler 1、List数据源设置的相关代码var temp:Array = []; var skillInfoVO:SkillInfoVO; for(var i:int = 0;i<20;i++) { skillInfoVO = new SkillInfoVO(); skillInfoVO.Name = "数据源" + i; skillInfoVO.Lv = i; skillInfoVO.Color = 1;...
来源: Laya_社区 发布时间: 20161223
[LayaAir3]list.selectHandler list.selectHandler选项点击事件,不能连续点击同一index的选项 private onSelect(index: number): void { console.log("当前选择的索引:" + index); let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0...
来源: Laya_社区 发布时间: 20241014
... 提交 1 个回复 cuixueying 赞同来自: Y_Yao 直接为你的tab添加selectHandler或者mouseHandler即可! 2017-05-16 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Y_Yao 相关问题 Dialog:屏蔽点...
来源: Laya_社区 发布时间: 20170516
ui list 里面的元素不能点击两次 你好,咱们list list.selectHandler = new Handler(this, onSelect); 只能获取一次点击事件么? 如何修改才能让list里面的元素 可以被连续点击? 附件 : --> 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20161202
...og.radioGroup_question.labelColors = "#ffffff"; dialog.radioGroup_question.selectHandler = new Handler(this, onRadioSelect) 附件 : --> 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20180718
关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....
来源: Laya_社区 发布时间: 20180719
...,真是服LAYA,哎,搞了我一晚上,真心不行 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地...
来源: Laya_社区 发布时间: 20180719