我一直在使用document.getElementById(iframeName).src += '';
來重新加載我的iframe作爲從父頁面觸發的另一個函數的一部分。我需要重新加載iframe頁面的唯一原因是我需要該頁面上的JavaScript重新運行,所以我寧願從緩存中重新加載iframe,而不是從服務器中重新加載它。我無法弄清楚如何從緩存中重新加載iframe。從緩存中重新加載iframe
此外,我寧願這樣做,而不必重新進入功能iframe src,如果可能的話,因爲我在多個iframe上使用相同的功能。
可能重複[什麼是使用JavaScript重新加載iframe的最佳方式?](http://stackoverflow.com/questions/86428/whats-the-best-way-to-reload-an-iframe-using- javascript) – user1596138 2014-10-27 15:19:47