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

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

1. 微信小游戏 Laya.LocalStorage.getJSON 不能用吗? [ 100%]

微信小游戏 Laya.LocalStorage.getJSON 不能用吗? 使用这个会报错 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 hill_0219 赞同来自: 如图 2018-01-16 0 0 分享 微博 QZONE 微信 h...

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

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

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

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

3. 手机上的getjson和setjson于电脑端有什么不一样的吗? [ 99%]

手机上的getjson和setjson于电脑端有什么不一样的吗? 存储的数据,在电脑端getjson显示为[2,2,1,1],手机上显示为[2,1,1,1]。 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

4. laya.net.LocalStorage_API3.0 [ 89%]

...calStorage Index Properties _baseClass items support Methods clear getItem getJSON removeItem setItem setJSON Properties Static _baseClass _baseClass: any Defined in laya/net/LocalStorage.ts:7 @ 基础类 Static items items: any Defined in laya/net/LocalStorage.ts:11 数据列表。 Static support s...

来源: Laya3.0_api 发布时间: 20231115

5. laya.net.LocalStorage [ 85%]

...tem(key:String):String[static] 获取指定键名的值。 LocalStorage  getJSON(key:String):Object[static] 获取指定键名对应的 Object 类型值。 LocalStorage  removeItem(key:String):void[static] 删除指定键名的信息。 LocalStorage  setItem(key:String, value:String):void[stat...

来源: laya_api 发布时间: 20170929

6. laya.net.LocalStorage [ 85%]

...tem(key:String):String[static] 获取指定键名的值。 LocalStorage  getJSON(key:String):Object[static] 获取指定键名对应的 Object 类型值。 LocalStorage  removeItem(key:String):void[static] 删除指定键名的信息。 LocalStorage  setItem(key:String, value:String):void[stat...

来源: Laya2.0_api 发布时间: 20190513

7. 微信开发者工具问题 [ 67%]

...n 134     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:15089/game/code.js:10708:15)     at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:15089/game/code.js:14608:25)     at Handler.__proto.runWith (http://127.0.0.1:15089/game/code.js:115...

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

8. 2.3.0beta 各种bug [ 65%]

...}             return this._style;         }     core.js vivo下getJSON报错兼容 static getJSON(key) {                         if(Storage.support){                 var obj = Storage.items.getItem(key);                 if(obj){                     r...

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

9. 关于Laya.LocalStorage.setJSON [ 64%]

...alStorage.setJSON 我用Laya.LocalStorage.setJSON()保存数据,然后用getJSON()读取的时候是null,我到底是没保存上还是没读出来啊? 这两个方法是这么用的吗? 附件 : --> 2019-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

10. 这个怎么解决 [ 60%]

...N at position 217 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0.1:38746/game/code.js:34118:15) at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:38746/game/code.js:41764:25) at Handler.__proto.runWith (http://127.0.0.1:38746/game/code.js:709:28) at Func...

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