2021-12-20 16:30:54 +08:00

53 lines
919 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 浏览器离线存储概述
在前面的章节中,我们已经为大家介绍了整个浏览器的组成部分:
<img src="/Users/Jie/Library/Application Support/typora-user-images/image-20211130141852946.png" alt="image-20211130141852946" style="zoom:60%;" />
大致分为:
- 用户界面(*user interface*
- 浏览器引擎(*browser engine*
- 渲染引擎(*rendering engine*
- 网络(*networking*
- *JS* 解释器(*JavaScript interpreter*
- 用户界面后端(*UI backend*
- 数据存储(*data storage*
而本章节我们就一起来看一下 *Data Persistence/storage* 这个部分,翻译成中文叫做浏览器离线存储或者本地存储。顾名思义,就是内容存储在浏览器这一边。
目前常见的浏览器离线存储的方式如下:
- *Cookie*
- *Web Storage*
- *WebSQL*
- *IndexedDB*
- *File System*
------
-*EOF*-