手机
当前位置:查字典教程网 >网页设计 >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来获取本地系统时间】相关文章:

html doctype 作用介绍

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

如何实现textarea中获取动态剩余字数的方法

html设置字体颜色的方法和使用ps获取html准确字体颜色的方法

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

html marquee标签使用示例介绍

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

html base标签 target=_parent使用介绍

html中select optgroup标签使用介绍

shtml include使用方法

精品推荐
分类导航