我试过这些:
<div id="result">
<table>
<?php require('newses.php'); ?>
</table>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
function autoRefresh_div()
{
$("#result").load("load.html");// a function which will load data from other file after x seconds
}
setInterval('autoRefresh_div()', 1000); // refresh div after 5 secs
</script>
但这对我没有用。请访问这些页面:
http://devzone.co.in/automatically-refresh-html-page-div-specific-time-interval/