客户端数据存储,DOM存储或HTML5本地存储? [英] Client-side data storing,DOM storage or HTML5 Local Storage?

查看:121
本文介绍了客户端数据存储,DOM存储或HTML5本地存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在考虑我的本地存储数据以供脱机查看时,我真的很困惑。现在我有两种选择,DOM存储和HTML5本地存储。
作为这个特定主题的完整新书,我需要一些SO专家和大师的帮助。
这两者的优势和劣势是什么?可以比较这两者之一,以便我深入了解或提供一些参考链接?





本地存储是持久性的,因此当您关闭并重新打开浏览器窗口时,存储的数据仍然存在。



会话存储是临时的,只要页面会话持续就可以使用。



真的没有比较两者之间从技术上说他们都是相同的。


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?

解决方案

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

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.

这篇关于客户端数据存储,DOM存储或HTML5本地存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆