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 July 2015.

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

語法

coord = position.timestamp

規格

Specification
Geolocation
# timestamp-attribute

瀏覽器的相容性

BCD tables only load in the browser

請參考