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

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

1. [LayaAir3]LocalStorage.get报错 [ 100%]

[LayaAir3]LocalStorage.get报错 Uncaught TypeError: Cannot read properties of undefined (reading 'getItem') 2025-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 LayaAir小牛 赞同来自: 可以发一个de...

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

2. LocalStorage不同项目,同一key得到的值一样 [ 95%]

LocalStorage不同项目,同一key得到的值一样 那不同项目的数据如何处理 2020-07-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

3. Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 [ 94%]

Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); 如果getJSON为空,在LayaAir IDE中获取的是null,而在微信小游戏中获取的是'';  getLocalStorage() { //清除本地存储 调试时取...

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

4. laya2.0 localStorage语法错误 [ 93%]

laya2.0 localStorage语法错误 Storage.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 添加评论 免费帖 --> 分享 ...

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

5. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 70%]

...来,甚至直接读取会显示字符串里边有乱码。。。。 Laya.LocalStorage.setItem("ceshiValue","100"); var testReadV:string = Laya.LocalStorage.getItem("ceshiValue"); console.log("testReadV = " + testReadV); 如此行代码,测试下来testReadV==undefined 这里我看了适配层,...

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

6. app构建IOS包 进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 [ 54%]

...iners/Data/Application/1BB9B6D6-4FF0-4A51-9504-EDDD8FD5E2C3/Library/Caches/localstorage/logo/logo.png 2018-01-09 20:50:15.650 ZhuaWawa[2531:1863829]  require(/sdcard/layabox/scripts/config.js) 2018-01-09 20:50:15.651 ZhuaWawa[2531:1863829] found the file in the package:scripts/config.js 2018-01-09 ...

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

7. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 50%]

...gin-----------------EngineStart() = /data/data/com.layabox.game//LayaCache/localstorage I/LayaBox: JNI localStoragePath=/data/data/com.layabox.game//LayaCache/localstorage V/WebViewChromium: Binding Chromium to the background looper Looper (main, tid 1) {4a7bba70} I/chromium: [INFO:library_loader_ho...

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

8. [LayaAirIDE3]xcode切入切出声音不播放 [ 45%]

...存     public initFromStorage(): void {         const data = Laya.LocalStorage.getJSON(SoundManager.STORAGE_KEY);         if (data) {             //Laya.SoundManager.musicVolume = data.bgmVolume / 100;             Laya.SoundManager.setMusicVolume(data.bgmVolume / 100);     ...

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

9. 在LayaIDE中下载的运行器启动报错 [ 44%]

...n-----------------EngineStart() = /data/data/com.layabox.conch5//LayaCache/localstorage 03-19 15:01:05.101 15556-15556/? E/SysUtils: ApplicationContext is null in ApplicationStatus 03-19 15:01:05.326 15556-15556/? E/0: ==============Java流程 FlashScreen start 03-19 15:01:05.331 15556-15556/? E/0: ...

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

10. Android Studio发布apk报错 [ 41%]

...------------EngineStart() = /data/user/0/com.lightpaw.dietyroad//LayaCache/localstorage 08-08 14:03:53.346 18569-18569/com.lightpaw.dietyroad E/MPlugin: Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport 08-08 14:03:53.381 18569-18569/com.lightpaw.dietyroad E/LayaGameEngine: game_...

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