我有一個書籤,繼續使用緩存版本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