2012-06-05 38 views
0
<html manifest="example.appcache"> 

您可以使用javascript添加manifest =“example.appcache”部分吗?使用javascript启用HTML5 AppCache?

+0

你试过吗? – robertc

+0

不可能吗? – user101579

+0

[动态触发HTML5缓存清单文件?]的可能重复(http://stackoverflow.com/questions/4548342/dynamically-trigger-html5-cache-manifest-file) – Jack

回答

0

不可以,因为html文件已经发送到服务器,所以对manifest属性的进一步更改不会使浏览器对它作出反应。 我试了一下:

document.documentElement.manifest = "site.manifest"; 

有和没有互联网加载页,它说:“连接错误”显然情况Seconde系列