52,804
社区成员




<%
ajax=requeset.querystring("ajax")
if ajax="1" then '为ajax请求,
showdate()
response.end'=========这里关键防止输出下面的其他html代码,这些代码之前不要有html代码,要不会一起输出
end if
function showdate()
response.write showdate
end function
%>
<script type="text/javascript" src="http://www.coding123.net/js/jquery.js"></script>
<script type="text/javascript">
setInterval(function(){
$("#h5time").load("x.asp", {ajax:1});
},10000)//10秒启动一次
</script>
其他html代码
<h5 id="h5time"><% showdate(); %></h5><!----加个ID,方便更新---->