大约有 272 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0048 秒)
...t/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用ide开发的...
来源: Laya_社区 发布时间: 20170223
...lView.js' at Object.fs.openSync (fs.js:558:18) at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20) at Object.fs.readFileSync (fs.js:468:33) at Object.fs.readFileSync (ELECTRON_ASAR.js:506:29) at LayaProjectCompiler.compressJsFiles (E:\Laya\LayaAirIDE_beta\resources\app\node...
来源: Laya_社区 发布时间: 20180509
..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...
来源: Laya_社区 发布时间: 20160722
... url: config.layerUIJson, type: Laya.Loader.JSON } ], Handler.create(this, function () { this.gameScenes = new ui.layer.gameScenesUI(); this.addChildren(this.gameScenes); })); 但页面上却没有任何内容显示出来!求教!!我看了论坛里面的教程:https://ask.layabox.com/questio...
来源: Laya_社区 发布时间: 20171012
...aya.HttpRequest(); hr.http.timeout = 3000; hr.http.ontimeout = function(){console.log("http timeout test: timeout")}; hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");}); hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeo...
来源: Laya_社区 发布时间: 20171016
...oBuf 支持 as3 版本吗? 导微信小程序报错window.focus is not a function 微信小程序 发布后缺少app.json文件 请问layaair2.0-js 怎么用程序在list中添加多元素的item Layabox如何实现本地存储 本地调试加载本地图片都报错 laya支持批处理调用js压...
来源: Laya_社区 发布时间: 20180114
...执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser()).parseFromString(value,'text/xml'); if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){ throw...
来源: Laya_社区 发布时间: 20180103
... hr.send(NameJosn, null, 'get', 'xml'); function method():void trace(hr.data) } hr.data 返回结果是 如何获得 比如id:10000 的节点属性? 附件 : --> 2016-06-26 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20160626
...new Laya.Vector3(1,1,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,function(){ box.transform.rotate(vect,true,false); }); } } new LayaAir3D(); 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20180307
...------------------------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar....
来源: Laya_社区 发布时间: 20161221