时间:2021-07-01 10:21:17 帮助过:32人阅读
//日期类型: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);
script>