获取时间函数_date-js获取年月日时间案例

Original 2019-06-22 15:48:21 366
abstract:<!DOCTYPE html><html> <meta charset="utf-8"> <title>获取时间函数_date</title></head><body> <script type="text/javascript"> var myday=new

<!DOCTYPE html>

<html>

<meta charset="utf-8">

<title>获取时间函数_date</title>

</head>

<body>


<script type="text/javascript">

var myday=new Date()

document.write(myday+'<br>')

//getFullYear

document.write(myday.getFullYear()+"年")


var d = new Date()

        document.write(d.getFullYear()+'<br>')

        document.write(myday.getFullYear()+"年")

        document.write(myday.getDate())





</script>


</body>

</html>


Correcting teacher:查无此人Correction time:2019-06-22 17:05:07
Teacher's summary:完成的不错。每行js和jq语句结束增加;号。继续加油

Release Notes

Popular Entries