手机
当前位置:查字典教程网 >网页设计 >XHTML >html中使用js来获取本地系统时间
html中使用js来获取本地系统时间
摘要:varnow=newDate()document.write(1900+now.getYear()+"-"+(now.getMonth()+...

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

为什么用div呢,为了选择位置来放,比如我是放在

【html中使用js来获取本地系统时间】相关文章:

在dreamweaver中使用zen coding的方法

html中br和br/的区别介绍

shtml include使用方法

html meta标签的使用总结(推荐)

html中select optgroup标签使用介绍

html中的meta标记简单对照

Html中使用自定义图片来实现checkbox显示的方法

xhtml的块级标记小结

html 网页中的锚点(命名锚记)的使用介绍

Html中value和name属性的作用及其使用介绍

精品推荐
分类导航