此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

GeolocationPosition: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月.

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

GeolocationPosition 接口的 timestamp 只读属性表示设备获取该位置信息的日期和时间。

包含 Unix 时间时间戳的数字(单位为毫秒)。

规范

Specification
Geolocation
# timestamp-attribute

浏览器兼容性

参见