<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function clock(){
var myDate = new Date();
var year =myDate.getFullYear();
var month=myDate.getMonth()+1;
var day=myDate.getDate();
var hours =myDate.getHours();
var minute=myDate.getMinutes();
var seconds=myDate.getSeconds();
var p=document.getElementById("p1");
p.innerHTML=year+"年"+month+"月"+day+"日"+hours+"时"+minute+"分"+seconds+"秒";
}
setInterval('clock()',500);
</script>
<title>无标题文档</title>
</head>
<body>
<p id=p1></p>
</body>
</html>
429



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



