简体   繁体   English

保存博客文章以供离线html5查看

[英]save blog article for offline html5 viewing

There are lots of different ways to save state in html5, how do you give the user the ability to decide on which articles they want to save offline and read later? 在html5中保存状态有很多不同的方法,您如何使用户能够决定他们要离线保存哪些文章并稍后阅读?

Edit: a bit more info... 编辑:更多信息...

I'm looking for a javascript/appcache solution I think. 我在寻找我认为的javascript / appcache解决方案。 although from reading some docs I can't see any way to dynamically add urls to the app cache. 尽管通过阅读一些文档,我看不到任何将URL动态添加到应用程序缓存的方法。

Would you need to use sql lite in the browser? 您是否需要在浏览器中使用sql lite? or is there some better way of doing this? 还是有更好的方法呢?

You will need to create a manifest file for all ur urls's and resources 您将需要为所有您的url和资源创建一个清单文件

http://en.wikipedia.org/wiki/Cache_manifest_in_HTML5 http://en.wikipedia.org/wiki/Cache_manifest_in_HTML5

http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html

use server side programming to create this page dynamically for each user 使用服务器端编程为每个用户动态创建此页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM