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

View in English Always switch to English

GeolocationCoordinates:accuracy 属性

基线 广泛可用

自 2020年7月 起,此特性已在主流浏览器中得到支持,可在大多数设备和浏览器版本中正常使用。

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

GeolocationCoordinates 接口的 accuracy 只读属性是一个严格为正的 double 值,表示 GeolocationCoordinates.latitudeGeolocationCoordinates.longitude 属性的精度(置信度为 95%,单位为米)。

一个正的 double 值,表示 GeolocationCoordinates.latitudeGeolocationCoordinates.longitude 属性的精度(置信度为 95%,单位为米)。

规范

规范
Geolocation
# latitude-longitude-and-accuracy-attributes

浏览器兼容性

参见