显示时间

<title>无标题文档</title>
</head>
显示当前时间,日期,<br />
新设置一个时间
<body>
</body>
</html>
<script>
var d=new Date();
document.write(d);

document.write(d.getDay());

var c=new Date(1999,3,7);
document.write(c);
</script>

原文地址:https://www.cnblogs.com/wanlibingfeng/p/5324078.html