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

View in English Always switch to English

GeolocationPositionError:message 属性

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)中可用。

GeolocationPositionError 接口的 message 只读属性返回一个描述错误详情的、便于人类阅读的字符串。

描述错误详情的、便于人类阅读的字符串。

规范

Specification
Geolocation
# message-attribute

浏览器兼容性

参见