大约有 678 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(341) Laya3.0_api(164) Laya2.0_api(58) laya_api(54) Laya2.0_文档(29) Laya3.0_文档(19) Laya2.0_示例(7) Laya_示例(6)
...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
使用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
... 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
...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
...08:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开始处理数...
来源: Laya_社区 发布时间: 20180201
...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
...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
...,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 !this._data if (!data._source){ this._data=data; ...
来源: Laya_社区 发布时间: 20190402
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
...05-08 0 1 分享 微博 QZONE 微信 Miller 赞同来自: rankList.array = data; rankList.height = 670; 我试了一下,大概高度超过670这个list高度就不变了,即使把高度设置成1000,list也是显示这么长。往小的方向改是可以有效果的,但超过670就对list的...
来源: Laya_社区 发布时间: 20180507