0
我傳遞一個公開頁面通過iframe在HTML頁面中:追加日期IFRAME SRC屬性與JavaScript
<iframe src="../disclosures/Pass_CO_GRN.html" name="disclose" width="790" marginwidth="0" height="400" marginheight="0" scrolling="Auto" id="disclose" frameborder="0" ></iframe>
我想補充附加日期時間的方法來src屬性,以確保該傳遞的資產(Pass_CO_GRN.html)不會在客戶端瀏覽器中緩存。我這樣做與鏈接的js文件(這也是我不想緩存)的方法是:
<script type="text/javascript">
document.write('<script language="JavaScript" src="linksHLS4.js?'+(new Date).getTime()+'"><'+'/script>');
,這完美的作品。我只是不知道如何將它調整(如果它可以適應)iframe標籤。有人知道嗎?
比我想象的更容易。代碼更新和測試。像魅力一樣工作,我非常感激。 – kjarsenal