小编给大家分享一下html中如何使用js来获取本地系统时间,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
<div id="名称">
<script language=Javascript>
var now=new Date()
document.write(1900+now.getYear()+"-"+(now.getMonth()+1)+"-"+now.getDate()+" "+now.getHours()+":"+now.getMinutes()+":"+now.getSeconds())
</script>
</div>
看完了这篇文章,相信你对“html中如何使用js来获取本地系统时间”有了一定的了解,如果想了解更多相关知识,欢迎关注云搜网行业资讯频道,感谢各位的阅读!