<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
<script type="text/javascript">
function refreshFrame() {
$('#myframe').attr('src', $('#myframe').attr('src'));
}
</script>
</head>
<body>
<div style="width:100%;height:350px">
<div class="row">
<iframe id="myframe" src="http://suz100:8100/CAR/EmbeddedPage_" frameborder=0 style="width:33%;height:350px" scrolling="no"></iframe>
<iframe id="myframe" src="http://suz100:8100/CAR/EmbeddedPage_" frameborder=0 style="width:33%;height:350px" scrolling="no"></iframe>
<iframe id="myframe" src="http://suz100:8100/CAR/EmbeddedPage_" frameborder=0 style="width:33%;height:350px" scrolling="no"></iframe>
</div>
<button οnclick="refreshFrame()">refresh</button>
</div>
<div style="width:100%;height:350px">
<h1>中华人民共和国</h1>
</div>
</body>
</html>
使用jquery刷新iframe
最新推荐文章于 2022-10-29 15:03:46 发布