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

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

語法

lat = coordinates.latitude

規格

Specification Status Comment
{{SpecName('Geolocation', '#lat', 'Coordinates.latitude')}} {{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}}

請參考