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.

  • 相关阅读:
    继承 多态
    封装练习
    PHP 面向对象封装
    面向对象 类和对象
    PHP前端和数据库的连接
    数组2
    PHP数组
    正则表达式
    PHP字符串
    linux基础
  • 原文地址:https://www.cnblogs.com/chenfulai/p/2457141.html
Copyright © 2011-2022 走看看