GeolocationPosition: timestamp 属性

Baseline 已广泛支持

此特性已经十分成熟,可在许多设备和浏览器版本上使用。自 2020 年 7 月以来,它已在各大浏览器中可用。

安全上下文: 此功能仅在安全上下文(HTTPS)中可用,且支持此功能的浏览器数量有限。

timestampGeolocationPosition 接口的一个只读属性,它表示设备获取位置的日期和时间。

一个数字,包含一个时间戳,以毫秒为单位的Unix 时间表示。

规范

规范
Geolocation
# timestamp-attribute

浏览器兼容性

另见