87,921
社区成员
发帖
与我相关
我的任务
分享
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<script type="text/javascript" >
function show()
{
var d= new Date();
alert(d);
document.getElementById("abc").innerHTML = d.getFullYear()+"年"+d.getMonth()+"月"+ d.getDay()+"日";
}
</script>
</head>
<body>
<input type="button" onclick="show()" value="Click"/>
<p id="abc" ></p>
</body>
</html>