大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...e 一直在执行 里面的逻辑条件一直无法达成所以也调不了this._complete();:private _checkComplete(): void { //该条件一直无法达成 if (ILaya.Browser.measureText(TTFLoader._testString, this._fontTxt).width != this._txtWidth) { this._complete(); } } 请问该怎么处理ttf...
来源: Laya_社区 发布时间: 20200628
...bgColor = "#ffcccc"; var div = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stag...
来源: Laya2.0_文档 发布时间: 20210714
...d() tMap.createMap("res/TiledMap/orthogonal.json",viewRect, Handler.create(this,onMapLoaded)); } private function onMapLoaded():void { //将原地图放大2倍 tMap.scale = 2; } } } ``` 运行效果如图8所示。  (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8...
来源: Laya2.0_文档 发布时间: 20210714
...请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自: this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList); ActivityXXXXXUI.prototype.updateList = function(cell, index) { var info = cell.dataSource; ...
来源: Laya_社区 发布时间: 20170808
... 但是动画会突然卡在某一帧一段时间, 如图 代码如下: this.frameLoop(1, this, () => { let interval = xxxxxx; this.tire.interval = interval; console.log("animation.index: " + this.tire.index); }); 另外说明: 只要不每帧改变interval 就不会卡住 附件 : --> 2020...
来源: Laya_社区 发布时间: 20201012
...内容相关的链接 提交 3 个回复 gls_laybox 赞同来自: t2.super(this);也是报错的,说没有构造方法 2018-01-04 0 0 分享 微博 QZONE 微信 qian 赞同来自: 建议参考https://ask.layabox.com/question/811 2018-01-04 0 6 分享 微博 QZONE 微信 gls_laybox 赞同来自: /*...
来源: Laya_社区 发布时间: 20180104
...nction demonstrate() { for (var i = 0; i < 10; i++) { Laya.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触...
来源: Laya_示例 发布时间: 20260303
...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler)...
来源: Laya_社区 发布时间: 20180419
...碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 new this.box2d box2d 是undefined 请问这里的 this 指向是 ?? contact.getHitInfo = function () { var manifold = new this.box2d.b2WorldManifold(); this.GetWorldManifold(ma...
来源: Laya_社区 发布时间: 20220819
...test.atlas" ){ Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } }.bind(this)); else Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } onComplete(): void { console.log("complated"); //初始化rank排行榜 var rank = new BigRan...
来源: Laya_社区 发布时间: 20200314