aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/geolocationcoordinates/latitude/index.html
blob: f49c927a07a210c9dcf0c075ce637c9e5abab701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: Coordinates.latitude
slug: Web/API/GeolocationCoordinates/latitude
translation_of: Web/API/GeolocationCoordinates/latitude
---
<div>{{securecontext_header}}{{APIRef("Geolocation API")}}</div>

<p><code><strong>Coordinates.latitude</strong></code> 只读属性,<span class="ask-title">十进制双精度浮点数来表示纬度坐标</span></p>

<h2 id="语法">语法</h2>

<pre class="syntaxbox"><em>lat</em> = <code><em>coordinates</em><code>.latitude</code></code>
</pre>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">说明</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Geolocation', '#lat', 'Coordinates.latitude')}}</td>
   <td>{{Spec2('Geolocation')}}</td>
   <td>Initial specification.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容">浏览器兼容</h2>



<p>{{Compat("api.Coordinates.latitude")}}</p>

<h2 id="相关链接">相关链接</h2>

<ul>
 <li><a href="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li>
 <li>The {{domxref("Coordinates")}} interface it belongs to.</li>
</ul>