Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

35. 什么是网络存储 #52

Open
webVueBlog opened this issue Jun 9, 2022 · 0 comments
Open

35. 什么是网络存储 #52

webVueBlog opened this issue Jun 9, 2022 · 0 comments

Comments

@webVueBlog
Copy link
Owner

Web 存储是一种 API,它提供了一种机制,通过该机制,浏览器可以在用户浏览器中本地存储键/值对,这种方式比使用 cookie 更直观。Web 存储提供了两种用于在客户端存储数据的机制。

本地存储:它存储当前来源的数据,没有过期日期。
会话存储:它存储一个会话的数据,当关闭浏览器选项卡时数据会丢失。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant