<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>显示系统时间</title>
<script>
</script>
</head>
<body onload="GetTime();setInterval('GetSeconds()',1000)">
<form id="form1" name="form1" method="post" action="">
</form>
</body>
</html>
本文介绍了一个简单的HTML页面,该页面使用JavaScript实现网页上实时更新的系统时间显示功能。通过设置全局变量并利用setInterval定时调用函数的方式,使得页面能够每秒自动刷新时间。
8659

被折叠的 条评论
为什么被折叠?



