html5 離線存儲

在html頁面中引入manifest文件 <html manifest="sample.appcache"> 在服務器添加mime-type text/cache-manifest 如下:   sample.appcache內容如下: CACHE MANIFEST #version n.n CACHE: #需要緩存的文件 /css/sample.css /images/image.jpg NE
相關文章
相關標籤/搜索