<!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() + '时' + newDate.getMinutes() + '分' + newDate.getSeconds() + '秒';
console.log(str);
</script>
</head>
<body>
</body>
</html>