PositionError.messagePositionError.message 是一個可讀的 DOMString 來描述錯誤的詳細訊息。語法msg = positionError.message 規格SpecificationGeolocation API # message-attribute瀏覽器的相容性BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.請參考 Using geolocation (en-US) 屬於 PositionError。