ipad上离线存储的限制

I've been working on a project that uses localStorage on an iPad. In my experience, the localStorage is perfectly stable. However, there are two things to consider:

  • Yes, the storage-limit is still 5Mb. Since characters are stored UTF16, only 2.5M characters can be stored in localStorage.

  • In contrast to other localStorage implementations, localStorage.setItem() doesn't delete any previous items with the same key before storing the new item. In other words: When overwriting an item, one should always call localStorage.removeItem() before calling localStorage.setItem(), or you'll quickly run out of space.

  • 测试结果确实如此。。晕啊。

localStorage(2.5M持久)
(下降的Safari浏览器)sessionStoratge
SQL数据库网站(但必须有权限的用户,最大50M)

日文网站翻译的结果

 

If you're using HTML5 SQL , the user will be prompted at 5MB intervals to increase the storage limit.

转载于:https://www.cnblogs.com/chenfulai/archive/2012/04/19/2457141.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值