html中怎么使用js来获取本地系统时间(html,JS,web开发)

时间:2024-05-06 07:21:03 作者 : 石家庄SEO 分类 : web开发
  • TAG :

代码如下:

<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来获取本地系统时间

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:html中怎么使用js来获取本地系统时间的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:html中position怎么使用下一篇:

5 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18