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

大约有 847 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

191. 读URL parameter [ 64%]

... 在LayaAirIDE 怎么写呢? var url = window.location.href; var index = null; if(url.lastIndexOf('?') != -1) {     index = url.split('?')[1];     index= index.split('=')[1]; } 2018-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

192. android下layabox调用Laya.Texture2D.load报错 [ 64%]

...game/dev-loca ... 5668: TypeError: Cannot read property 'createTexture' of null 02-06 14:59:43.858  6545  6658 I LayaBox : var glTexture=this._source=gl.createTexture(); 02-06 14:59:43.858  6545  6658 I LayaBox :                                ^ 02-06 14:59:43.858  6545  6658 I...

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

193. 官网示例摇一摇报错,就解决方案 [ 64%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 微信小游戏编译报错 小游戏项目 加载有中文的json文件 报错 用了ByteArray的zlib.min.js后报错 runtime运行报错! 本地调试加载本地图片都报错 3d项目-unity添加物...

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

194. 场景设置UIView的var属性不起作用 [ 64%]

...Data数据 修改#9999行 root=Laya.SceneUtils.createComp(uiView,root,view,null,tInitTool,!!view); 修改#10038行 Laya.SceneUtils.createComp=function(uiView,comp,view,dataMap,initTool,alterRoot=false){ 修改#10077行 tChild=Laya.SceneUtils.createComp(node,null,alterRoot?comp:view,dataMap,initTool)...

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

195. Cannot read property 'toDefault' of undefined报错是什么原因 [ 64%]

...ight); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用...

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

196. laya2.0中没有1.0的AtlasResourceManager对自动图集的管理有替代方案? [ 64%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 laya2.0 3d物理碰撞穿透问题 问题状态 最新活动: 2020-03-08 20:59 浏览: 188 关注: 1 人

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

197. localStorage如何判定其是否存在 [ 64%]

...tItem("gameid")){ } 这样写会报错 Cannot read property 'getItem' of null 会导致程序终止,我想在程序开始的时候进行一次判定,根据其gameid是否存在进行后续的逻辑判断 2017-05-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

198. 在一个页面多放几个iframe,里面使用引擎,一般3-4个就报错了 [ 64%]

...1 恩 一个BIG工程,我测试将 window["mozAudioContext"] = null; window["AudioContext"] = null; window["webkitAudioContext"] = null; 好吧 可以利用这个来动态决定是否可用

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

199. laya2.0 localStorage语法错误 [ 64%]

...getItem=function(key){ return Storage.support ? Storage.items.getItem(key):null; } Storage.getJSON=function(key){ return JSON.parse(Storage.support ? Storage.items.getItem(key):null); }?:不是js的写法吧... 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

200. 打包app,http无法设置content-type [ 64%]

... { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method === 'put') { body = JSON.st...

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