发表于 & 归档在 Mobile, Web.

离线程序,注意下面三处

index.html

<html manifest="book.manifest">

book.manifest

CACHE MANIFEST
index.html
scripts/book.js
styles/screen.css

Tomcat ,WEB-INF/web.xml
<mime-mapping><!– manifest –>
<extension>manifest</extension> 
<mime-type>text/cache-manifest</mime-type> 
</mime-mapping> 

Leave a Reply

Your email address will not be published. Required fields are marked *