本地存储,会话存储,Web存储,Web数据库和Cookie中的HTML5 [英] Local Storage, Session storage, Web storage, web database and cookies in HTML5

查看:152
本文介绍了本地存储,会话存储,Web存储,Web数据库和Cookie中的HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些概念之间有什么区别,我应该在什么时候使用它?

What is the difference between these concepts, and when should I use one in particular? Does this listing also contain different names for the same general concept?


  • HTML5本地存储

  • HTML5会话存储

  • HTML5网络存储

  • HTML5网络数据库

  • Cookie

  • HTML5 local storage
  • HTML5 session storage
  • HTML5 web storage
  • HTML5 web database
  • Cookies

推荐答案

HTML5网络存储是新客户端数据存储选项的通用总称。

HTML5 web storage is a generic umbrella term for the new client-side data storage options.

本地存储是持久性的,并且限定到域。目前通常提及两种口味:

Local Storage is persistent and scoped to the domain. At the moment two flavors are usually mentioned:


  • 'default':将物品存储在名称/值对中

  • Web SQL(aka Web数据库):使用SQL数据库

会话存储不持久,只限于当前窗口。

Session Storage is non persistent and scoped only to the current window.

Cookie是上述所有方法的老学校。存储每个域的名称/值对。

Cookies are the old school way of doing all of the above. Stores name/value pairs per domain.

这篇关于本地存储,会话存储,Web存储,Web数据库和Cookie中的HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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