输出现在的年月日时分秒

Original 2019-04-10 15:58:29 208
abstract:<!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() + '时' + newDate.getMinutes() + '分' + newDate.getSeconds() + '秒';

       console.log(str);

    </script>

</head>

<body>

    

</body>

</html>


Correcting teacher:查无此人Correction time:2019-04-10 16:36:31
Teacher's summary:完成的不错。年月日,一般都是php来做,前端多用作选择时间。继续加油。

Release Notes

Popular Entries