大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
...ate onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */...
来源: Laya3.0_文档 发布时间: 20251010
...76*****233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return fals...
来源: Laya_社区 发布时间: 20170828
...nerWidth; //获取窗口显示区的高度。 desHeight=window.innerHeight if(desHeight!=this.sourceHeight) { this.bg.y = 180; } else { this.bg.y = 540; } } 代码就这么写的 点击输入框监听不到 哪里用错了吗 2017-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170322
...3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox =...
来源: Laya_社区 发布时间: 20180402
... { super.dataSource = value; if(dataSource==null) return; names=dataSource.name; txts.text = names; ////////以下为:根据参数来定义样式 var itemBasic:Object=I...
来源: Laya_社区 发布时间: 20170703
...ERR! getaddrinfo ENOTFOUND layacmd layacmd:80 : ,layacmd npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! c:\Users\qykings\Documents\h5work\layaGame\trunk...
来源: Laya_社区 发布时间: 20170608
... 赞同来自: 贺迪青 、失灵沙尔克 laya.ani.js里 FrameAnimation if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); }这个null 改为undefined 2019-11-19 2 2 分享 微博 QZO...
来源: Laya_社区 发布时间: 20191117
...细页面初始化的时候都执行这个的. item=new Laya.Animation(); if (i!=whichistrue) { aniname="lose_1_"+aniname+".ani"; } else { ran=Math.random(); aniname="win_1_"+aniname+".ani"; } item.loadAnimation(aniname); item.x=60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.dowor...
来源: Laya_社区 发布时间: 20171106
...k():void{ alert("123456"); } public static onClick1():void{ } } if (window) { (<any>window).Test = Test; } Test导到全局 2019-03-14 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 18638179199 ...
来源: Laya_社区 发布时间: 20190313
...texSubImage2D整张image, //实测76*59的image此函数耗时1.2毫秒 if (Render.isConchWebGL) { (xoffset - 1 >= 0) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) &&...
来源: Laya_社区 发布时间: 20180417