<body onload="gogo()"> <h1>取得目前時間:</h1> <ul> <li>現在日期/時間:<span name='nowtime'></span></li> <li>getFullYear(): <span name='nowtime'></span></li> <li>getMonth(): <span name='nowtime'></span></li> <li>getDate(): <span name='nowtime'></span></li> <li>getDay(): <span name='nowtime'></span></li> <li>getHours(): <span name='nowtime'></span></li> <li>getMinutes(): <span name='nowtime'></span></li> <li>getSeconds(): <span name='nowtime'></span></li> <li>getMilliseconds(): <span name='nowtime'></span></li> <li>getTime(): <span name='nowtime'></span></li> <li>toString(): <span name='nowtime'></span></li> </ul>