chenfulai

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.

分类:

技术点:

相关文章:

  • 2021-12-03
  • 2021-07-09
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2021-10-13
  • 2021-09-10
  • 2021-11-05
相关资源
相似解决方案