大约有 69 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0077 秒)
window.localStorage.getItem LocalDataManager.saveValue("innerKuangVisible" + i, "1"); LocalDataManager.saveValue("gouVisible" + i, "true"); 本地缓存在laya取到的是true,为什么在微信里却是false window.localStorage.getItem(name); 2018-09-26 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180926
Laya.LocalStorage.getItem 微信小游戏 为啥获取不了值 this.userCoinCount = parseInt(Laya.LocalStorage.getItem("userCoinCount"));获取不了里面的值 2019-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0...
来源: Laya_社区 发布时间: 20191219
微信小游戏Laya.LocalStorage.getItem数据丢失 Laya引擎1.7.22 发布微信小游戏 部分用户报告存档丢失(iphone7,robin手机丢失两次) 存档使用Laya.LocalStorage.setItem,读取使用Laya.LocalStoryage.getItem 附件 : --> 2018-12-26 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20181226
Laya2.1.1发布vivo小游戏Laya.LocalStorage.getItem() Laya2.1.1发布vivo小游戏 游戏中Laya.LocalStorage.getItem()不管获取什么,都是返回Value XXXXX of type java.lang.String cannot be converted to JSONObject 2019-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20190905
...的链接 提交 2 个回复 cuixueying 赞同来自: 你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到button的引用,为button添加点击事件。 2017-01-05 0 3 分享 微博 QZONE 微信 weiyongwill 赞同来自: 这样需要用for语句对每个list元素操...
来源: Laya_社区 发布时间: 20170105
...启; 或者有些浏览器的无痕模式)。 那么用了LocalStorage.getItem, setItem的地方,就会报错。 然后整个游戏就崩掉了。 解决方案是: 修改 libs下 LocalStorage类里的Storage 类里的init()方法 (第94行), public static function init():void ...
来源: Laya_社区 发布时间: 20180703
...archy LocalStorage 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 s...
来源: Laya3.0_api 发布时间: 20231115
...ayaNative支持LocalStorage的使用,但是有格式要求,必须使用getItem()、setItem()来存储值以及取值 ### AS下的用法 ```java //存储指定键名和键值,字符串类型。 LocalStorage.setItem("LayaBox","H5引擎!"); //获取指定键名的值。 LocalStorage.getItem("La...
来源: Laya2.0_文档 发布时间: 20210714
...游戏流畅度。 Hierarchy Pool Index Methods clearBySign createByClass getItem getItemByClass getItemByCreateFun getPoolBySign recover recoverByClass Methods Static clearBySign clearBySign(sign: string): void Defined in laya/utils/Pool.ts:26 清除对象池的对象。 Parameters sign: string 对...
来源: Laya3.0_api 发布时间: 20231115
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