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

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

1. laya2.0 localStorage语法错误 [ 100%]

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

2. [LayaAir3]LocalStorage.get报错 [ 89%]

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

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

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

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

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