大约有 1,491 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0067 秒)
...false时: 代码如下: document.addEventListener('touchstart',()=>{ if(conch){ var l = 50; var t = 50; var w = window.innerWidth - l * 2; var h = window.innerHeight - t * 2; conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,false); // canclose设置为false //conch.setExternalLink('http...
来源: Laya3.0_文档 发布时间: 20230303
...且调换 laya.core.js 里面 URL.formatURL 里面修改 if (URL.customFormat !=null)url=URL.customFormat(url,base); if (url.indexOf(":")> 0)return url; 才能加载到外部资源地址的图片 2.已经找到问题是加载里面没有对文件 laya.wxmin.js...
来源: Laya_社区 发布时间: 20180118
...r.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumber = false; break; } } if (isNotNumber) { str.splice(i, 1); i--; } } input.text = str.join(''); })
来源: Laya_社区 发布时间: 20190225
...void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlayState == null) { var defaultClip = this.getDefaultState(i); (defaul...
来源: Laya_社区 发布时间: 20190513
...rAgent); iphoneVer = md.version("iPhone") isIphone = Laya.Browser.onIPhone if (isIphone) { if (iphoneVer >= 15 && iphoneVer < 15.1) { Laya.Config.useWebGL2 = false } } } catch (e) { } }; 2023-06-30 0 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,我们这边使用IOS15....
来源: Laya_社区 发布时间: 20230425
...er(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (this._level > 1) { this._level--; this._text.text = (this._level + ""); owner.getComponent(Laya.RigidBody).setVelocity({ x: 0, y:...
来源: Laya3.0_文档 发布时间: 20251010
...套导致的问题,修改HTMLParse的_parseXML方法里面的一个逻辑if (parent is HTMLDivParser) 为if (parent is HTMLDivParser||xml.length>0) 即可
来源: Laya_社区 发布时间: 20190108
...= colors[colorCount++ % colors.length]; path.length = 0; } onMouseMove() { if (!isDown) return; path.push(Laya.stage.mouseX); path.push(Laya.stage.mouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0...
来源: Laya2.0_示例 发布时间: 20251218
... set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 laya.physics3D.js:308 Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value...
来源: Laya_社区 发布时间: 20191108
...gt; <script> var gameCanvas = document.getElementById("layaCanvas"); if ((sys.platform !== sys.DESKTOP_BROWSER)) { gameCanvas.style.position = "fixed"; } else { gameCanvas.style.position = "static"; } html5Full.toLandscape(); </script> 这边,我知道创建script标签的方法 var ...
来源: Laya_社区 发布时间: 20180129