• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,604 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0177 秒)

221. 怎么对动画进行毎帧侦听? [ 73%]

...e);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20170704

222. 关于遍历数组 [ 73%]

... i++) {             var pair = pairs[i];             console.debug("pairID"+pair.id);             idArr.push(pair.id);     } 2017-04-20 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 keiy 相关问题 ...

来源: Laya_社区 发布时间: 20170420

223. 调用Laya.Geolocation,程序卡死 [ 73%]

调用Laya.Geolocation,程序卡死 if (!Laya.Geolocation.supported) { console.log(11) this.txt.text = "11"; }else{ console.log(3333) this.txt.text = "22"; } 代码运行到这里就不往下运行 了,控制台也不输出,什么问题? 2018-03-14 添加评论 免费帖 --> 分享 微博 Q...

来源: Laya_社区 发布时间: 20180314

224. Dialog 关闭效果无效 [ 73%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

来源: Laya_社区 发布时间: 20171107

225. Box绑定事件失效 [ 73%]

...23456123456 赞同来自: 代码部分: this.room_top1 = new Laya.Box(); console.log(this.room_top1) this.room_top1.on("click",this,function(){console.log("11111111111")});   2017-11-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你输出下box的宽高,看看是否有...

来源: Laya_社区 发布时间: 20171116

226. zip更新模式缓存是怎么读取的?? [ 73%]

... onEvent('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new ZipFile(); if(zip.setSrc(localfile)){ zip.forEach((id,name,dir,sz)=>{ if(!dir){ let buf = zip.readFile(id); //console.log("update "+name); let fid = window.appcache.hashstr('/'+name);...

来源: Laya_社区 发布时间: 20180108

227. laya无法解析部分属性 [ 73%]

... 2017-02-22 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你的 console.log(guanbimyxd+2);         console.log(uppage+2);写错了吧 应该是让组件的某个属性值去加上另外一个值,而并非组件本身吧! 2017-02-22 0 0 分享 微博 QZONE 微信 为什么被折叠...

来源: Laya_社区 发布时间: 20170222

228. 龙骨动画demo [ 73%]

...ad("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => { console.log(e); let num = skeleton.getAnimNum() let name = skeleton.getAniNameByIndex(num - 1); skeleton.play(name) }));  this.owner.addChild(skeleton); 2019-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20190416

229. js调用android的java代码失败。NoSuchMethodException [ 73%]

... bridge = PlatformClass.createClass("demo.JSBridge")//创建脚步代理 } console.log("test step ~~~~~~~~~~~~~~~~~~~~~~1") if(os == "Conch-ios"){ }else if (os == "Conch-android") { console.log("test step ~~~~~~~~~~~~~~~~~~~~~~2") if(bridge){ console.log("test step ~~~~~~~~~~~~~~~~~~~~~~3") bridge.c...

来源: Laya_社区 发布时间: 20211111

230. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 73%]

...nt is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < this.intRows; iRows++) { let iNum = Math.round(Math....

来源: Laya_社区 发布时间: 20190625