Date日期对象的使用

  <script>
    var today = new Date();
    // var birthday = new Date("December 17, 1995 03:24:00");
    // var birthday = new Date("1995-12-17T03:24:00");
    // var birthday = new Date(1995, 11, 17);
    // var birthday = new Date(1995, 11, 17, 3, 24, 0);
    console.log(today);
  </script>

 

posted @ 2022-04-13 09:11  罗砂  阅读(27)  评论(0)    收藏  举报