大约有 513 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
...addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 80 然后一...
来源: Laya_社区 发布时间: 20170627
...模式有问题吗? .laya文件夹过大,没有打包 console.log("目标所属的OWER"+this.owner.name + ""); console.log("目标所属的OWER:"+this.owner.name.slice(12,13) + ""); Laya.Scene.open("test/PuzzleScene"+this.owner.name.slice(12,13...
来源: Laya_社区 发布时间: 20201115
....login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined" 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180728
...e","100"); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,不知是怎么回事会导致读取不到或者读取时出现乱码 在laya.bkadpter.js的 var LocalStor...
来源: Laya_社区 发布时间: 20181030
...eld this.compile())) { //确认编译结果 this.checkAllDir(""); } else { console.log("compile fail!"); } }); } 复制代码[/code] 其中__awaiter是一个编译工具函数,相当于async/await ,因为引擎项目是ES6的,所以使用这种方式实现异步执行的功能,想进一步...
来源: Laya_社区 发布时间: 20200925
...说一下思路?或者上完成的代码? LoseFocus(){ console.log("失去焦点") this.NowPlayMusic.stop(); } GetFocus(){ console.log("获取焦点"); Laya.SoundManager.stopMusic(); Laya.SoundM...
来源: Laya_社区 发布时间: 20200220
.../?nav=zh-ts-5-0-7 if(Laya.Browser.onMiniGame) wx.onMessage(function(data){ console.log(data); if(data.url == "res/atlas/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...
来源: Laya_社区 发布时间: 20200314
...游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,f...
来源: Laya_社区 发布时间: 20180810
...n", Laya.Handler.create(this, function (obj) { console.log('hero',obj); }), null, Laya.Loader.PREFAB); Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) { console.log('WeiTiao',...
来源: Laya_社区 发布时间: 20211026
...n(){ if(miniMap.complete==true){ var img = circle_image(miniMap,750,1334); console.log(miniMap); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } miniMap.src=url; function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, cont...
来源: Laya_社区 发布时间: 20181125