Date.getMilliseconds() 會依本地時間回傳日期物件中的毫秒數,範圍為 0 到 999。
new Date().getMilliseconds()
它常用於毫秒精度計時、動畫幀率與高精度日誌。
若需要 UTC 毫秒,可使用 getUTCMilliseconds()。