此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。

View in English Always switch to English

Position.timestamp

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2020年7月⁩.

Position.timestamp 是一個唯讀的 DOMTimeStamp 物件, 此物件代表建立 Position 物件的日期和時間,精確度為毫秒。

語法

coord = position.timestamp

規格

Specification
Geolocation
# timestamp-attribute

瀏覽器的相容性

請參考