大约有 71 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...ew Laya.Byte(); // this.socket.input.readBytes(byte); if (event instanceof ArrayBuffer){ var byte:Laya.Byte = new Laya.Byte(event); this.socket.input.clear(); this.processPackage(this._package.decode(byte)); } } private sendMessage(reqId, route, msg) { var byte:Laya.Byte; // var msgbuffer = Protocol...
来源: Laya_社区 发布时间: 20180119
...tion StorePage() { this.storelist.array = HostData.array //对list进行默认加载赋值 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelis...
来源: Laya_社区 发布时间: 20180503
... result: any[] = target.map( (_, index: number) => index % step === 0 ? Array.from(Array(step).keys()).map((x: number) => target[index + x]) : [] ) .filter((x: any[]) => x.length > 0); if (markString) result = result.map((x: any[]) => x.join("")) return result; } padding(str: string |...
来源: Laya_社区 发布时间: 20190321
...14367261 赞同来自: 赋值方式和单个list没差别的!还是你对Array的处理 2018-05-23 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 星竹 相关问题 两个对象new了一个相同的对象,调用第一个的一个方...
来源: Laya_社区 发布时间: 20180522
...lean, repeat: boolean, delay: number, caller: any, method: Function, args: Array<any>, coverBefore: boolean): void; /** * 定时执行一次。 * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数...
来源: Laya_社区 发布时间: 20171109
...打开这个网页呢 移植了一个游戏 代码重新 写的 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 一个3D正方体模...
来源: Laya_社区 发布时间: 20180213
...ord: any; public progress: number; public uv_info: Array<any>; constructor() { super(0, 0); this.progress = 0.0; this.uv_info = [0.0, 0.0, 1.0, 1.0]; var len: number = 8 * CONST3D2D.BYTE...
来源: Laya_社区 发布时间: 20170606
改变不了请求消息头,已近设置了 let headers:Array<any> = new Array<any>(); headers.push("Content-Type", "application/json") //headers={"Content-Type":"application/json"} //let answers={"answers":core.CommonData.DaTi,"examUuid":network.HttpHelper.compile(core.CommonData.Uui...
来源: Laya_社区 发布时间: 20180208
...erHandler = new Handler(this, updateItem); Laya.stage.addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 ...
来源: Laya_社区 发布时间: 20170627
... Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start...
来源: Laya_社区 发布时间: 20170329