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

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

181. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 42%]

...tion.TIMEOUT) errType = "Time Out"; alert('ERROR(' + errType + '): ' + e.message); } ``` 完成以上步骤之后就可以在设备上的浏览器查看效果。如果位置错误,把获取到的坐标当成谷歌坐标试试。注意浏览器本身的安全限制可能需要用户手动允许...

来源: Laya2.0_文档 发布时间: 20210714

182. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...cation.TIMEOUT) errType = "Time Out"; alert('ERROR(' + errType + '): ' + e.message); } 完成以上步骤之后就可以在设备上的浏览器查看效果。如果位置错误,把获取到的坐标当成谷歌坐标试试。注意浏览器本身的安全限制可能需要用户手动允许网页...

来源: Laya3.0_文档 发布时间: 20251010

183. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 41%]

...端; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,receiveHandler); this.socket.on(Event.CLOSE,this,closeHandler); this.socket.on(Event.ERROR,this,errorHandler); } public function connect():void { if(!this.socket.connected){ this.socket.connectByUrl("ws://127.0.0.1...

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

184. 引擎代码严重问题 导致react报错 [ 41%]

...xception occurred; use the non-minified dev environment for the full error message and additional helpful warnings. jacksing888 • 2017-03-21 11:19 这里更加合理的做法应该是 自己封装一个函数 去调用 才是比较合理的 尽量少去污染全局的东西 cuixueying • 2017-03-...

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

185. 攻略贴:打包apk完整流程记录(单机版) [ 40%]

...开的项目,编译的时候,会报“Can't find bundle for base name Message, locale zh_CN”。     坑6: 依然是步骤3中,如果import路径不是选的步奏2中 输出路径 下的目录android_studio,而是直接选了导出的路径,项目在Android Studio中,根本就...

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

186. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 39%]

...FER }, { url: "res/ui/TimeView.fui", type: Loader.BUFFER }, { url: "res/ui/Message.fui", type: Loader.BUFFER }, { url: "res/ui/Description.fui", type: Loader.BUFFER }, { url: "res/ui/Result.fui", type: Loader.BUFFER }, { url: "res/ui/Language.fui", type: Loader.BUFFER }, { url: "res/ui/Result.fui", ...

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

187. 苹果上架问题, [ 39%]

...may provide additional details about your app by replying directly to this message. Guideline 4.0 - Design Your app includes an update button or alerts the user to update the app, but the update button or alert does not link directly to the app’s page on the App Store. Please see attached screensh...

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

188. [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 [ 33%]

...20-12-10 19:03:48.110664+0800 layabox[1694:38272] *** -[CFString release]: message sent to deallocated instance 0x600001940000 2020-12-10 0 0 分享 微博 QZONE 微信 nothing 赞同来自: 把 官方教程里面的 设置背景颜色方法 像这样 给一个 返回值,就重现bug 崩溃了.. +(N...

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

189. socket通讯返回数据 [ 32%]

...ket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.socket.send("hello world");//#################################...

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

190. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...资源URL string function getListItemResource(index:number) { let msg = _messages[index]; if (msg.fromMe) return "url1.lh"; else return "url2.lh"; } 然后设置这个函数为列表的item提供者: aList.itemProvider = getListItemResource; 对于横向流动、竖向流动和分页的列表,...

来源: Laya3.0_文档 发布时间: 20251128