Position.coords 是一个Coordinates 对象的只读属性 , 表示地理状态:它包括位置,地球上的经度和纬度,相关的海拔和速度,可以重新组合内部返回的这些值,它还包含有关这些值的准确信息。

语法

coord = position.coords

标准

Specification Status Comment
Geolocation API
Position.coords
Recommendation Initial specification.

浏览器兼容性

 

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 5Edge Full support YesFirefox Full support 3.5IE Full support 9Opera Full support 16Safari Full support 5WebView Android Full support YesChrome Android Full support 18Edge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 16Safari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

请参见

文档标签和贡献者

此页面的贡献者: Jack.Works, wangxb
最后编辑者: Jack.Works,