摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>日期</title></head><body><scr
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>日期</title>
</head>
<body>
<script type="text/javascript">
var myday=new Date()
document.write(myday)
document.write("<br>")
document.write("<br>")
document.write("今天是"+myday.getFullYear()+'年')
document.write(myday.getMonth()+'月')
document.write(myday.getDate()+'日')
document.write("星期"+myday.Day())
document.write("<br>")
document.write("现在是"+myday.getHours()+'时')
document.write(myday.getMinutes()+'分')
document.write(myday.getSeconds()+'秒')
</script>
</body>
</html>
批改老师:查无此人批改时间:2019-02-16 09:03:52
老师总结:完成的不错,日期时间函数,多用在弹出时间选择框。比如买机票,每天的价格不一样。多练习,继续加油。