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

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

11. list item 添加事件后无法监听 [ 93%]

...tem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索...

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

12. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 91%]

使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? package { import flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.UR...

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

13. list 下 生成图片模糊 [ 90%]

... list 1.7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。...

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

14. 输入设备-地图 [ 89%]

...mp; } // 将原始坐标转换为百度坐标 function convertToBaiduCoord(data) { if (data.status == 0) { var position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } function onError(e) { if (e.code == Geolocation.TIMEOUT) alert("...

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

15. 在native下 Laya.Browser.window.Blob不存在 [ 89%]

...08:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开始处理数...

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

16. 多次加载一个页面出现_$P为null的情况 [ 89%]

...geHelper.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage.destroyChildren(); var playSence = new OnlinePlaySence(data); Laya.stage.addChild(playSence); },functi...

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

17. 输入设备-地图 [ 89%]

...p.timestamp; } // 将原始坐标转换为百度坐标 convertToBaiduCoord(data) { if (data.status == 0) { let position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } onError(e) { const Geolocation = Laya.Geolocation; if (e.code == ...

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

18. Laya.loader.load加载位图字体 [ 89%]

...,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){                 this._data=data;    ...

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

19. List组件拖动浏览时item会出现重叠的现象 [ 88%]

List组件拖动浏览时item会出现重叠的现象 module list.datasource { import List = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item...

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

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

...05-08 0 1 分享 微博 QZONE 微信 Miller 赞同来自: rankList.array = data; rankList.height = 670; 我试了一下,大概高度超过670这个list高度就不变了,即使把高度设置成1000,list也是显示这么长。往小的方向改是可以有效果的,但超过670就对list的...

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