Date 构造函数接收的参数

2017-06-15 18:56:00
admin
原创
578
<!DOCTYPE html>
<html>
<head>
    <title>Date Type Constructor Example</title>
    <script type="text/javascript">
    
        //January 1, 2000 at midnight in local time
        var y2k = new Date(2000, 0);
        alert(y2k.toLocaleString());
        
        //May 5, 2005 at 5:55:55 PM in local time
        var allFives = new Date(2005, 4, 5, 17, 55, 55);
        alert(allFives.toLocaleString());


    </script>
</head>
<body>

</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络