html页面时间实例:
<script></script>
//日期类型:date
var date = new Date();
console.log("日期类型======"+typeof date);
var timerDom = document.getElementById("timer");
setInterval(function(){
var d = new Date();
timerDom.innerHTML = d.toLocaleString();
},10);