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>

为何用div呢,以便挑选部位来放,例如我是放在