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

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

GeolocationPositionError 介面的 message 唯讀屬性會回傳一個人類可讀的字串,用以描述錯誤的詳細資訊。

一個描述錯誤詳細資訊的人類可讀字串。

規範

Specification
Geolocation
# message-attribute

瀏覽器相容性

參見