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

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

21. list里面可以加入多个view吗? [ 75%]

...; } private function onRender(cell:Item,index:int):void { cell.setImg(cell.dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var im...

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

22. UI-List [ 73%]

...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public st...

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

23. UI-List [ 73%]

...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public st...

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

24. list赋值没有生效 [ 71%]

...关的链接 提交 1 个回复 Laya_XS 赞同来自: 你虽然给listdatasource赋值了数据,但是你没有在renderIndex方法里操作list的渲染单元,所以list的item单元不会发生数值变化。 2016-08-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

25. list 怎么嵌套赋值呢? [ 69%]

...air2.0-js 怎么用程序在list中添加多元素的item 关于List问题 DataSource怎么使用网路图片的路径赋值 微信开放域排行榜滑动list滑动没反应 list列表加定时器超过一页后必出问题 问题状态 最新活动: 2018-01-26 19:39 浏览: 971 关注: 3 人

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

26. list,刷新数据的问题 [ 69%]

...andler = new Laya.Handler(this, function (cell, index) { cell.setData(cell.dataSource) }) list.array内是必有值的,但是setData有时候有值有时候没值。导致item时有时无,这该怎么处理 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

27. List列表的问题 [ 69%]

List列表的问题 List的通过array和dataSource属性赋值又有何不同,哪个性能更高,为啥我赋值完后半天列表才显示出来,有哪里要注意的吗? 2018-05-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

28. dialog里面的内容怎么不能添加到舞台 [ 69%]

...++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addC...

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

29. 缓动-缓动函数演示 [ 69%]

...); easeFunctionsList.array = data; } renderList(item) { item.setLabel(item.dataSource); } onEaseFunctionChange(list) { const Tween = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } cre...

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

30. 缓动-缓动函数演示 [ 68%]

...nctionsList.array = data; } function renderList(item) { item.setLabel(item.dataSource); } function onEaseFunctionChange(list) { character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } function createDurationCrontroller() {...

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