Position.coords
是一个Coordinates
对象的只读属性 , 表示地理状态:它包括位置,地球上的经度和纬度,相关的海拔和速度,可以重新组合内部返回的这些值,它还包含有关这些值的准确信息。
语法
coord = position.coords
标准
Specification | Status | Comment |
---|---|---|
Geolocation API Position.coords |
Recommendation | Initial specification. |
浏览器兼容性
No compatibility data found. Please contribute data for "api.Position.coords" (depth: 1) to the MDN compatibility data repository.
请参见
- Using geolocation
- The
Position
interface it belongs to.