本来使用
document.getElementById(‘FrameID’).contentWindow.location.reload(true);
会报错。后来看到另一种刷新iframe的方法,试了下可以,记录下来。
document.getElementById(‘youriframe’).src=document.getElementById(‘youriframe’).src;
iframe跨域刷新Blocked a frame with origin
最新推荐文章于 2024-06-24 15:19:44 发布