--- title: Coordinates.longitude slug: Web/API/GeolocationCoordinates/longitude translation_of: Web/API/GeolocationCoordinates/longitude ---
{{APIRef("Geolocation API")}}

Coordinates.longitude 是個唯讀十進位的複數用來代表裝置經度的位置。

語法

lon = coordinates.longitude

規格

Specification Status Comment
{{SpecName('Geolocation', '#lon', 'Coordinates.longitude')}} {{Spec2('Geolocation')}} Initial specification.

瀏覽器的相容性

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5 {{CompatGeckoDesktop("1.9.1")}} 9 10.60
{{CompatNo}} 15.0
16.0
5
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatGeckoMobile("4")}} {{CompatUnknown}} 10.60 {{CompatUnknown}}

請參考