|
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
http://blogs.msdn.com/b/ie/archive/2011/09/27/building-offline-experiences-with-html5-appcache-and-indexeddb.aspx
Users expect their Web sites and apps to work well even when the network isn't available. With data increasingly stored in the cloud, developers want to enable fluid experiences that allow access to data when there is no connectivity; when devices are disconnected from the network or when they encounter dead spots in coverage.
In this post, we show how to create well-behaved offline sites and apps using the following HTML5 features:
- AppCache to store file resources locally and access them offline as URLs
- IndexedDB to store structured data locally so you can access and query it
- DOM Storage to store small amounts of text information locally
- Offline events to detect if you’re connected to the network
|
|