web 的一些基本的缓存和存储

2017-03-29  本文已影响17人  helinyu

1、application cache 实际操作
2、local storage【几种】 和web sql
3、一个离线的web app框架

?什么是离线web app
离线= 没有网络 或者弱网络

本地保存操作数据:
eg:邮箱软件 == > 离线编辑 + 在线发送

web app = html + css + js
html5 提供的数据持久化技术;
application cache 本地缓存应用所http://m.ftchinese.com/phone.html的文件
Local Storage & session storage 键值对(KV)存储数据
Web sql 关系型数据库,通过sql语句进行访问;
IndexDB 索引数据库

eg:
http://m.ftchinese.com/phone.html 一个web app
【ios对离线的web app支持最好,可以在主屏幕上添加图标,可以全屏浏览】

application cache
manifest 文件
application cache 的浏览器事件
特点: mainfest文件有变化之后才会更新,一次必须更manifest中的所有文件下次才生效。

上一篇下一篇

猜你喜欢

热点阅读