摘要:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript&qu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
var newDate = new Date();
var str = newDate.getFullYear() + '年' + (newDate.getMonth() + 1) + '月' + newDate.getDate() + '日' + newDate.getHours() + '時(shí)' + newDate.getMinutes() + '分' + newDate.getSeconds() + '秒';
console.log(str);
</script>
</head>
<body>
</body>
</html>
批改老師:查無此人批改時(shí)間:2019-04-10 16:36:31
老師總結(jié):完成的不錯(cuò)。年月日,一般都是php來做,前端多用作選擇時(shí)間。繼續(xù)加油。