问题

Im really confused when thinking about my requirement to store data locally for offline viewing.Now i have two options,DOM storage and HTML5 Local storage.

As im a complete newbiew in this particular topic,i need some help of SO Experts and Gurus.

Whats the Advantage and Dis-advantage of these two.?can any one compare these one.,so that i can understand deeply or give some reference links?

回答1:

DOM Storage or Web Storage is the collective name given to the following types of client storage options available in HTML5. It includes:

localStorage

sessionStorage

Local storage is persistent meaning the stored data will still be there when you close and re-open the browser window.

Session storage is temporary and is available as long as the page session lasts.

There is really no comparison between the two since technically they both are the same.

回答2:

Try to have a read here http://blog.sebarmeli.com/2010/11/22/understanding-webstorage/, you can easily understand the two objects, their methods, event attributes and their possible use.

来源:https://stackoverflow.com/questions/4021106/client-side-data-storing-dom-storage-or-html5-local-storage

html5 dom storage,Client-side data storing,DOM storage or HTML5 Local Storage?相关推荐

  1. Goroutine Local Storage的一些实现方案和必要性讨论

    Java的ThreadLocal是Java为每个线程提供的专用存储,把一些信息放在ThreadLocal上,可以用于来简化上层应用的API使用.一个显著的应用场景是,有了ThreadLocal后,就不 ...

  2. Local Storage和Session Storage详解

    Local Storage和Session Storage详解 1. 来历 在HTML5中新加了Web Storage的储存方式,主要是为了弥补Cookie储存容量的不足.Web Storage分为L ...

  3. D3中数据与DOM element绑定之data() enter() exit()浅析

    几个非常有用的links: [1] three little circles. http://bost.ocks.org/mike/circles/ [2] How selection works.  ...

  4. 面试官:什么是虚拟DOM?如何实现一个虚拟DOM?

    故心故心故心故心小故冲啊 文章目录 一.什么是虚拟DOM 二.为什么需要虚拟DOM 三.如何实现虚拟DOM 小结 参考文献 一.什么是虚拟DOM 虚拟 DOM (Virtual DOM )这个概念相信 ...

  5. DOM(一)概述、dom树、查找元素

    目录 一.DOM 概述 二.DOM树 二.查找元素 1. 无需查找的元素 2. 按节点间关系查找 3. 按 HTML 特征查找 三.案例:通过DOM实现购物车效果 一.DOM 概述 DOM全称 Doc ...

  6. python中dom是什么意思_python--BOM和DOM

    一. 介绍 什么是BOM和DOM? 简要答案:BOM是浏览器对象模型,用来获取或设置浏览器的属性.行为,例如:新建窗口.获取屏幕分辨率.浏览器版本号等. DOM是文档对象模型,用来获取或设置文档中标签 ...

  7. virtual DOM和真实DOM的区别_让虚拟DOM和DOMdiff不再成为你的绊脚石

    来源 | https://juejin.im/post/5c8e5e4951882545c109ae9c Keep Moving 时至今日,前端对于知识的考量是越来越有水平了,逼格高大上了 各类框架大 ...

  8. Data Storage(数据存储)之内部储存(Internal Storage)

    Data Storage(数据存储)之内部储存(Internal Storage) 读取手机内部储存,Activity 中调用 openFileOutput(file_name, mode)方法返回F ...

  9. 关于HTML5本地持久化存储的Web SQL、Local Storage、Cookies技术

    在浏览器客户端记录一些信息,有三种常用的Web数据持久化存储的方式,分别是Web SQL.Local Storage.Cookies. Web SQL 作为html5本地数据库,可通过一套API来操纵 ...

最新文章

  1. 博客摘录:网络管理员的两天
  2. SAP MM MB21 创建预留界面批量为多个行项目勾选M标记
  3. Android资源文件
  4. “汇新杯”新兴科技+互联网创新大赛青年创客专项赛决赛
  5. 200820C阶段一通用链表
  6. Intent跳转传list集合
  7. [js] 渲染树构建、布局及绘制
  8. 语义分割江湖的那些事儿——从旷视说起
  9. php软件开发--公众平台
  10. linux下安装Python3.6.1
  11. 服务器安装时找不到驱动器,单位有台曙光的A840r-G服务器 由于之前做过RAID 所以在装系统时提前找不到硬盘驱动器...
  12. Beyond Compare如何展开所有子文件夹
  13. 随机用户名获取易语言代码
  14. tcpclient java_以TcpClient接收消息
  15. tplink控制上网设备_tp link无线路由器设置里的主人设备 访客网络
  16. csgo autoexec.cfg
  17. 为什么有时候我们在测试ESP32或ESP8266模块使用 QOUT/QIO 下载固件,程序无法正常运行? (DIO/DOUT 正常)另外ESP32功耗怎么校验?
  18. 微信小程序 java校园二手物品交易系统uniapp
  19. 面向用户界面设计,故障诊断程序集成设计(以CWRU为例)
  20. 太空避难所修改数据(船员和货币)

热门文章

  1. JavaScript 简介 1
  2. iOS - UIActivityIndicatorView
  3. CentOs中mysql的安装与配置
  4. POJ1384Piggy-Bank(DP)
  5. Gentoo下搭建DNS中转服务器基本配置
  6. devExpress 7.2.5
  7. mfc实验报告心得体会_mfc实验报告.doc
  8. html5+桌面推送,HTML5 Web Notifications 桌面推送小记
  9. opencv批量灰度转换_OpenCV图像处理之常见的图像灰度变换
  10. AZURE-百万像素定焦镜头