大约有 60 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...问题,请求解决 卡顿问题 因为 delta 不稳定,使用了Date.now ,方式计算导致精度不够。我上传源码有对比。 现在laya 在H5 表现 就差这个影响体验的问题了,求官方解决。 本人从 laya1 用到现在laya3 很多年了,真希望越来越好...
来源: Laya_社区 发布时间: 20250908
...nction onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map.selectedLabel Laya.map_small_c = e } function onSelect_big(e) { if (e != 0) { if (Laya.keys > 0) { Laya.big_switch = 0 Laya.map_big = e Laya.maptype = "big" this.small_map....
来源: Laya_社区 发布时间: 20180719
...nction onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map.selectedLabel Laya.map_small_c = e } function onSelect_big(e) { if (e != 0) { if (Laya.keys > 0) { Laya.big_switch = 0 Laya.map_big = e Laya.maptype = "big" this.small_map....
来源: Laya_社区 发布时间: 20180719
...的时候,会被编译成错误代码. addFootPrintMagic(super.x,super.y, now); 被编译成addFootPrintMagic(laya.display.Sprite.prototype.x,_super.prototype.y,now); 下面是我写的测试代码,也被编译错了. trace(super.x,super.y); 被编译成了console.log(laya.display.Sprite.prototype.x...
来源: Laya_社区 发布时间: 20190311
...@rock8654你好 AS3下的getTimer,可以使用layaAir下的Browser.now()替代,请重新测试下你的问题,及时反馈,谢谢! 2016-05-24 0 2 分享 微博 QZONE 微信 cuixu_xucui 赞同来自: 请问LZ,getTimer这个问题,最后怎么解决的 2017-11-01 0 0 分享 ...
来源: Laya_社区 发布时间: 20160524
...ouchFromArr(touchID,preDowns); if (!preO){ }else { var isDouble=false; var now=Browser.now(); isDouble=now-this._lastClickTime < 300; this._lastClickTime=now; if (ele==preO.tar){ sendArr=arrs; }else { oldArr=this.getEles(preO.tar,null,TouchManager._oldArr); sendArr=TouchManager._newArr; sendArr.l...
来源: Laya_社区 发布时间: 20180529
... if (!self.$running) { self.$lastTime = Date.now(); self.$running = true; } } /** * 停止计时 */ public stop(): void { var self = this; ...
来源: Laya_社区 发布时间: 20181114
..."resources/test/a ("+i+").png"); } let nt = Date.now(); Laya.loader.load( loadList, Laya.Handler.create(this, () => { var label=this.owner.getChildByName("time") as Laya.Label; ...
来源: Laya_社区 发布时间: 20240628
...ixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71 Static PLATFORM_IOS PLATFORM_IOS: number = 2 Defined in laya/utils/Browser.ts:72 Static PLATFORM_PC PLATFOR...
来源: Laya3.0_api 发布时间: 20231115
...ocument 对象中拥有指定 id 的第一个对象的引用。 Browser now():Number[static] 获取浏览器当前时间戳,单位为毫秒。 Browser removeElement(ele:*):void[static] 移除指定的浏览器原生节点对象。 BrowserProperty Detailcanvaspropertypublic static var canvas:...
来源: laya_api 发布时间: 20170929