Home >Web Front-end >HTML Tutorial >html页面时间实例_html/css_WEB-ITnose

html页面时间实例_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:36:291088browse

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);

 


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn