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

大约有 36 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0026 秒)

11. 缓动-缓动函数演示 [ 73%]

...rollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHandler = new Handler(this, this.onEaseFunctionChange, [easeFunctionsList]); easeFunctionsList.renderHandler = new Handler(this, this.renderList); Laya.stage.addChild(easeFunctionsList); let data = []; data.push('backIn...

来源: Laya2.0_示例 发布时间: 20251209

12. 缓动-缓动函数演示 [ 73%]

...rollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHandler = new Handler(this, onEaseFunctionChange, [easeFunctionsList]); easeFunctionsList.renderHandler = new Handler(this, renderList); Laya.stage.addChild(easeFunctionsList); var data = []; data.push('backIn', 'backOu...

来源: Laya_示例 发布时间: 20251209

13. 如何自定义一个类实现类似List的功能的Grid [ 72%]

...行的处理器,(默认返回参数: 项索引(index:number))。*/ selectHandler: Handler; /**单元格渲染处理器(默认返回参数cell:Box,index:number)。*/ renderHandler: Handler; /**单元格鼠标事件处理器(默认返回参数e:Event,index:number)。*/ mouseHandler: Handler; /...

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

14. 关于下拉列表的选择触发 [ 72%]

关于下拉列表的选择触发 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

15. list item 添加事件后无法监听 [ 70%]

...new Handler(this, onSelect)     list.selectEnable = true;     list.selectHandler = new Handler(this, onSelect);      list.renderHandler = new Handler(this, updateItem);     return list; }  function updateItem(cell, index) {     console.log(index);     // console.log(cell.da...

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

16. List选中项下滚会变 [ 69%]

...值 this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerLi...

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

17. 监听选择list项会一直触发 [ 64%]

监听选择list项会一直触发 v1.7.5this.avatarList.selectHandler = Handler.create(this, this.onSelect, null, false); onSelect(index: number) { console.log("一直触发"); }     2017-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

18. Image.loadImage 方法加载问题 [ 64%]

...ht = 810;// this.publicSpaceList.vScrollBarSkin = ""; this.publicSpaceList.selectHandler = new Laya.Handler(this, this.onListSelect); this.publicSpaceList.renderHandler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPubl...

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

19. 对象的监听事件 [ 63%]

...不会生效。 请问:为什么会出现这种情况。list里面原有selectHandler的事件的,这个事件则有效,鼠标点击事件则无效 2018-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 L...

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

20. 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() [ 59%]

...源加载用Handler.create()? 我测试了一下,如果类似于 tab.selectHandler = Laya.Handler.create(tab, this.onSelect); 这种的,如果用create则只能触发一下,如果用new Handler则正常触发? 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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