--- title: Coordinates.longitude slug: Web/API/GeolocationCoordinates/longitude translation_of: Web/API/GeolocationCoordinates/longitude ---
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}} |