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

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

21. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 68%]

...rankList.array = data; function updateItem(cell, index) { cell.setImg(cell.dataSource); }  发布小游戏将code.js 发到开放域设置的目录下面改名为index.js  报错了 具体图片如下     附件 : --> 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

22. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 65%]

...renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.roombg.addChild(list); var data = []; for (var i = 0; i < 1; ++i) { data.push("11"); } list.array = data; } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

23. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 64%]

...ull, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();      //rankList.scrollBar.elasticBackTime = 200;    //rankList.scrollBar.elasticBackTime = 200;//设置橡皮筋回弹时间。单...

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

24. 列表组件 · LayaAir3.0文档 · LAYABOX [ 63%]

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

来源: Laya3.0_文档 发布时间: 20230927

25. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 62%]

...} list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); ```

来源: Laya2.0_文档 发布时间: 20210714

26. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...; } 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_文档 发布时间: 20210715

27. 【LIST无法拖动】参照官方实例做的 [ 61%]

...rivate updateItem(cell: Item): void {         cell.setImg(cell.dataSource);      }     private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         console.log("目的是哪一关" + this.box_arr[index]);    ...

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

28. laya.ui.List [ 59%]

...开启自定义渲染,才能使用customRender函数渲染。 Sprite  dataSource : *[override] 数据赋值,通过对UI赋值来控制UI显示逻辑。 简单赋值会更改组件的默认属性,使用大括号可以指定组件的任意属性进行赋值。 List destroyed : Boolean[只读]...

来源: laya_api 发布时间: 20170929

29. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 59%]

...x:int):void { //用获得的数据给图片更换皮肤 cell.img.skin=cell.dataSource; } /***选择单元格回调***/ private function onSelect(index:int):void { trace("当前选择的索引:" + index); } } } //单元格类,继承于Box import laya.ui.Box; import laya.ui.Image; class Item exten...

来源: Laya2.0_文档 发布时间: 20210715

30. laya.ui.List [ 58%]

...开启自定义渲染,才能使用customRender函数渲染。 Sprite  dataSource : *[override] 数据赋值,通过对UI赋值来控制UI显示逻辑。 简单赋值会更改组件的默认属性,使用大括号可以指定组件的任意属性进行赋值。 List destroyed : Boolean = false...

来源: Laya2.0_api 发布时间: 20190513