Coordinates.latitude

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

Coordinates.latitude 只读属性,十进制双精度浮点数来表示纬度坐标

语法

lat = coordinates.latitude

规范

Specification
Geolocation
# latitude-longitude-and-accuracy-attributes

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
latitude

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Has more compatibility info.

参见