JavaScriptDate對象方法:顯示當(dāng)前的UTC時間
顯示當(dāng)前的 UTC 時間
如何使用 getUTCHours() 顯示當(dāng)前的 UTC 時間。
編輯您的代碼:
var d = new Date()
document.write(d.getUTCHours())
document.write(".")
document.write(d.getUTCMinutes())
document.write(".")
document.write(d.getUTCSeconds())
免責(zé)申明 --------------------------------------------------------------------------------------
以上內(nèi)容僅代表原創(chuàng)者觀點,其內(nèi)容未經(jīng)本站證實,中華考試網(wǎng)對以上內(nèi)容的真實性、完整性不作任何保證或承諾,轉(zhuǎn)載目的在于傳遞更多信息,由此產(chǎn)生的后果與中華考試網(wǎng)無關(guān);如以上轉(zhuǎn)載內(nèi)容不慎侵犯了您的權(quán)益,請聯(lián)系我們
,我們將會及時處理。