DIV CSS 佈局教程網

JavaScript getSeconds():取得本地秒數
編輯:JavaScript基礎知識     

Date.getSeconds() 會依本地時間回傳日期物件中的秒數,範圍為 0 到 59。

new Date().getSeconds()

它適合用於時鐘顯示、倒數計時與時間格式化。

若需要 UTC 秒數,可使用 getUTCSeconds()。

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved