大约有 1,081 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
... this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg'); console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-30 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: width height 不行吗? 2018-07-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180730
...eRockerTouchDown); ...... function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); var touches = e.touches; if(touches) { ...取出前两个touch进行计算 } } 请问为什么我的touches一直都是undefined 附件 : --> shoot004.zip...
来源: Laya_社区 发布时间: 20171202
...SON = JSON; //js.stringify("a","1"); js.uname ="sdfsdf"; js.pss ="sdfsdf"; console.log(js); this.hr.send(url, js,"post","text"); 服务器端获取不到值只是 [object JSON] this.hr.send(url, js,"post","json"); 会报错,发送失败 2017-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170509
...里正常运行 aFun(){ return i.__awaiter(this,void 0,void 0,function*(){ console.log("111"), yield xxxx, }) } 类似于这种,在微信开发者工具里运行正常,但是在真机上却无法执行。 求问各位大佬指点一二。 2020-04-21 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20200421
...ler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function errorHandler(data){ }; xmlHttp.send("http://","","post","text"); 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180202
...Main extends Laya.Script { private aStarInstance: AStarFinder; onStart() { console.log("Game start"); // 0表示通路,1表示障碍 let myMatrix = [ [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 1, 1, 0, 1, 1, 0], [0, 0, 1, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1, 0], [1, 1, 1, 0, 1, 0,...
来源: Laya3.0_文档 发布时间: 20251010
js实现多角色同屏显示 //console.log("进入大厅"); var bidding = new Bidding(); bidding.init(); Dispatcher.Emit("bidder"); Laya.stage.addChild(bidding); 每人每次点击都是new一个对象 每人每次访问LayaSample.js也是new一个新的 如何多角色同屏显...
来源: Laya_社区 发布时间: 20170808
...e if (this.sOS == "Conch-android") { this.bridge.call("loading", value); } console.log("loadingView.prototype.loading=" + value); } }; 这个方法就没有调用,是需要在哪调用吗? 怎么调用? 2019-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20190724
...er = new Worker("js/my_task.js"); myWorker.onmessage = function (oEvent) { console.log("Called back by the worker!\n"); }; myWorker.postMessage("start"); // start the worker. 新建一个my_task.js文件,放到js文件夹下,代码如下: self.addEventListener('message', function (e) { var xml...
来源: Laya3.0_文档 发布时间: 20251010
...ss: function (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我乱写的 如果才能正确获取小游戏当前画布的canv...
来源: Laya_社区 发布时间: 20181128