大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0083 秒)
...ya.Event.RESIZE,this, this.ChangeSize); private ChangeSize() { console.log("---------------") if(Laya.Browser.window.innerHeight < Laya.Browser.window.innerWidth) { console.log("横屏") } else { console.log("竖屏") ...
来源: Laya_社区 发布时间: 20230516
...omplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name 不存在 } 第二种方式 Laya.loader.load("zxc.json", Laya.Handler.create(this,function(){ this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayP...
来源: Laya_社区 发布时间: 20180119
... var pixelRatio = Laya.Browser.pixelRatio; console.log(browserWidth + " " + browserHeight + " " + pixelRatio); // 获取canvas元素对应的DOM对象 var canvas = document.getElementById('canvas'); var div1 = document...
来源: Laya_社区 发布时间: 20200604
..._ddz/animation/ddz_figures_landlord.sk"); } private onError(): void { console.log("error"); } private parseComplete(): void { console.error("地主加载完成"); this.isFinish = true; } public getArmature():Laya.Skeleton{ if(!this.isFinish){ return null; } let armature = null; if(this.mArm...
来源: Laya_社区 发布时间: 20190821
...; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false...
来源: Laya_社区 发布时间: 20161109
...t中: SoundManager.playSound("XXX", this, ()=>{ console.log('触发1'); Laya.timer.scale = 0; SoundManager.playSound("XXX", this, ()=>{ console.log('触发2'); ...
来源: Laya_社区 发布时间: 20201107
.../laya/assets/comp/image.png"); Laya.stage.addChild(older); console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height); older.scale(2,2); console.log(older.scaleX,older.scaleY,older....
来源: Laya_社区 发布时间: 20170118
... new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php', s, 'post', 't...
来源: Laya_社区 发布时间: 20170628
... 赞同来自: 没有这样的参数,如果想关闭的话可以重写下console里边的log 2017-11-20 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lilynumber1 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面...
来源: Laya_社区 发布时间: 20171120
...@param e 事件对象 */ private onHttpRequestError(e: any = null): void { console.error("请求失败:", e); this.logger.text = "请求失败,请重试。\n"; } /** * 请求进度改变触发的回调 * @param e 事件对象 */ private onHttpRequestProgress(e: any = null): void { //进度的百...
来源: Laya3.0_文档 发布时间: 20250214