大约有 1,013 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0056 秒)
...eleton.on(Laya.Event.CLICK,this,onclickHuman); function onclickHuman(){ console.log("onclickHuman"); } https://www.cnblogs.com/Jackie-Snow/p/8487607.html 网上的这个方式试了,没用,按照网上说是没有设置width与height 但是这个宽和高通过getBounds取出来是0 2018-09-0...
来源: Laya_社区 发布时间: 20180909
... 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
...am.end); skinAni.player.on(Laya.Event.COMPLETE, null, function(){ console.log("COMPLETE"); }); 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 只播放一次获取...
来源: Laya_社区 发布时间: 20170314
...eRockerTouchDown); ...... function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); var touches = e.touches; if(touches) { ...取出前两个touch进行计算 } } 请问为什么我的touches一直都是undefined 附件 : --> shoot004.zip...
来源: Laya_社区 发布时间: 20171202
...信开发者工具打开报错 web端打包发布后能不能自动删除console.log 关於文档丶API丶Demo若有异动 2.0文档哪里有 问题状态 最新活动: 2025-12-11 11:07 浏览: 2537 关注: 2 人 无雨之地 • 2025-12-15 15:27 我表示不认可laya的做法:命令行可以自...
来源: Laya_社区 发布时间: 20251211
...ler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function errorHandler(data){ }; xmlHttp.send("http://","","post","text"); 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180202
js多角色同屏显示 //console.log("进入大厅"); var bidding = new Bidding(); bidding.init(); Dispatcher.Emit("bidder"); Laya.stage.addChild(bidding); 多个角色在Bidding()中显示,可是每个人访问都会new一个Bidding();就不能多个角色同屏显示 每人每次访...
来源: Laya_社区 发布时间: 20170809
....Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="fileInput" type="file" accept="image/*" style="display: none;" onchange="filechage(this.files)...
来源: Laya_社区 发布时间: 20170626
...须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.laya...
来源: Laya2.0_文档 发布时间: 20210715
js实现多角色同屏显示 //console.log("进入大厅"); var bidding = new Bidding(); bidding.init(); Dispatcher.Emit("bidder"); Laya.stage.addChild(bidding); 每人每次点击都是new一个对象 每人每次访问LayaSample.js也是new一个新的 如何多角色同屏显...
来源: Laya_社区 发布时间: 20170808