<head>
<script src=”jQuery/jquery-1.4.1.min.js” type=”text/javascript”></script>
<script>
$(document).ready(function () {
setInterval(“startRequest()”,1000);
});
function startRequest()
{
$(“#date”).text((new Date()).toString());
}
</script>
局部调用刷新
<script language=”javascript” type=”text/javascript”>
$(document).ready(function () {
setInterval(“startRequest()”,5000);
$(“#neirong”).load(“t.asp”);
});
function startRequest()
{
$(“#neirong”).load(“t.asp”);
}
</script>
</head>
评论前必须登录!
注册