我有一个书签,继续使用缓存版本http://www.imvu-e.com/products/hpv/download/HPV.js
。我希望它永远不会缓存它,并始终重新加载它。如何强制使用javascript和基本脚本加载缓存
这是我用来保存书签(其中用户拖动到其安装浏览器工具栏)的超级链接:
<a href="javascript:(function(){
c = document.createElement("script");
c.type = "text/javascript";
c.src = "http://www.imvu-e.com/products/hpv/download/HPV.js";
c.onload = c.onreadystatechange = function() {
if (! (d = this.readyState) || d == "loaded" || d == "complete"){
document.documentElement.childNodes[0].removeChild(c);
version='beta';
}
};
document.documentElement.childNodes[0].appendChild(c);
})();">Run HPV</a>
js/html ..的混合很糟糕使用一个js框架 – dynamic 2012-02-22 17:32:54
@ yes123这是一个书签,你应该把一个体面的块在网址(因为它需要执行加载你的更复杂的js文件) – wheresrhys 2012-02-22 17:57:04