大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
...复,等待下次发版,或您手动修复一下。 if (this._max >= this._min) { this._value = this._value > this._max ? this._max : this._value < this._min ? this._min : this._value; } else { //当设置的最小值大于最大值的...
来源: Laya_社区 发布时间: 20220817
...= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.vx > this.stageWidth ||this.ball.x + this.vx < 0) { this.vx = -this.vx; console.log("444444"); } if (t...
来源: Laya_社区 发布时间: 20171108
...预览运行进程调用UI进程的脚本: let EditorClient = (<any>window).EditorClient; EditorClient.postMessageToPanel("ProjectPanel", "select", assetId); //调用自定义的Panel的一个方法,并返回结果 let ret = await EditorClient.sendMessageToPanel("MyPanel", "getResult"); //...
来源: Laya3.0_文档 发布时间: 20251010
... wx.getUserInfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出来时空...
来源: Laya_社区 发布时间: 20190917
...c httpRequest(method:string, url:string, data:any, headers:Array<string>, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let...
来源: Laya_社区 发布时间: 20170123
...,正确的代码是:onLoop():void{ this.y+=50; if (this.bg1.y+this.y>=852) { this.bg1.y-=852*2; } if (this.bg2.y+this.y>=852) { this.bg2.y-=852*2; } }我尝试的代码是: onLoop():void{ this.y+=50; if (this.bg1.y>=852) { this.y-=852*2; this.bg1.y-=852*2; } if (this.bg2.y>=852) { ...
来源: Laya_社区 发布时间: 20180114
...DebugPanel Parameters Default value debugJsPath: string = "libs/laya.debugtool.js" laya.debugtool.js文件路径 Returns void Static init init(stageConfig?: IStageConfig): Promise<void> init(width: number, height: number, ...plugins: any[]): Promise<void> Defined in Laya.ts:73 初始化...
来源: Laya3.0_api 发布时间: 20231115
ios layaplayer 不支持的标签<noscript> (具体参考LayaBox网站文档) 错误提示: layaplayer 不支持的标签<noscript> (具体参考LayaBox网站文档) 2017-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170805
...lf.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3...
来源: Laya_社区 发布时间: 20200720
...示。 而实际的1.5.2的版本中,生命周期是: preinitialize > createChildren > initialize > 组件构造函数 当时就直接混乱了,最后还是代码注释中的才是正确的,请赶快更新文档吧 2016-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20161110