我编写了一个代码,我想重新加载一个特定的div。我正在使用jquery来刷新div,但问题是重叠发生。
<script type="text/javascript">
var refresh = setInterval(function () {
refreshapppane();
}, 10000);
function refreshapppane() {
$('#frmRadio1').load("Business_Impacts.jsp");
//alert();
}
</script>
<body>
<div id="main_container">
some code
<div id="frmRadio"> refresh this pane
</div>
</div>
</body>
答案 0 :(得分:0)
function refreshapppane() {
$('#frmRadio').append("Business_Impacts.jsp");
//alert();
}
setInterval(refreshapppane, 1000);
&#13;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="main_container">
some code
<div id="frmRadio">refresh this pane
</div>
</div>
&#13;