大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0070 秒)
... 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
...染,可以在初始化时调用Laya.init(1000,800,laya.webgl.WebGL);--><script type="text/javascript" src="libs/laya.webgl.js"></script> 赵飞 • 2019-01-09 11:22 问一下,在微信小游戏里是好的,打成APP包却错位了是要怎么改?
来源: Laya_社区 发布时间: 20180823
... 200; div.style.color = "#000000"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/ChatFace/face'+i+'.png" style="width:28px;height:28px;"></img>'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth ...
来源: Laya_社区 发布时间: 20170911
..."#ff0000"; txt.fontSize = 30; txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000); 5秒钟把文本放大2倍,感觉是 fontSize在不平滑的增...
来源: Laya_社区 发布时间: 20200410