开发者

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

开发者 https://www.devze.com 2023-02-06 16:29 出处:网络
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?

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

精彩评论

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