geoApi:(JS) navigator.geolocation.getCurrentPosition(updateLocation, handleLocationError)

时间:2024-06-19 05:29:40
【文件属性】:

文件名称:geoApi:(JS) navigator.geolocation.getCurrentPosition(updateLocation, handleLocationError)

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-19 05:29:40

HTML

地理API function getCoordinates() { navigator.geolocation.getCurrentPosition(updateLocation, handleLocationError); } function updateLocation(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; var accuracy = position.coords.accuracy; var timestamp = position.timestamp;


【文件预览】:
geoApi-master
----index.html(9KB)
----README.md(1KB)

网友评论