0523万年历

  

<style>
* {
margin:0px;
padding:0px;
}

</style>


</head>
<body>

<div id="d1" ></div>


</body>
</html>
<script>
d1 = document.getElementById("d1");
function d3(){
var time = new Date();
var year = time.getFullYear();
var month = time.getMonth()+1;
var day = time.getDate();
d1.innerHTML=(year, month, day, time);
}



window.setInterval("d3()", 1000);
</script>

posted @ 2017-05-24 15:57  小伙子很浪  阅读(94)  评论(0编辑  收藏  举报