zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    yii2框架随笔27
    yii2框架随笔26
    yii2框架随笔25
    yii2框架随笔24
    yii2框架随笔23
    yii2框架随笔21
    yii2框架随笔20
    yii2框架随笔19
    yii2源码学习笔记(十五)
    yii2源码学习笔记(十四)
  • 原文地址:https://www.cnblogs.com/chenfulai/p/2457141.html
Copyright © 2011-2022 走看看