开发者

Can a html5 app download HTML files and store them locally?

Is it possible to download html files and images from a server and store them in the same disk location as the 开发者_如何转开发html file doing the downloading?

I need to do this because I have an app that is a database of HTML files and these files change from time to time. When updates occur, it would be good if the HTML5 app prompted the user to do an update and if accepted, the file were downloaded and replaced the old file set.

The app has to work offline, hence the need to download the data.


In most browsers, yes. Read about the cache manifest http://diveintohtml5.ep.io/offline.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜