In chrome, the code for reloading an iframe is (using pure JavaScript):
document.getElementById('iframeID').location.reload();
document.getElementById('iframeid').src += '';
The first method reloads the iframe by calling that reload()
method, the second method reloads the iframe by appending an empty string, which forces the iframe to reload.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…