window.navigator.geolocation.getCurrentPosition(function(info){//成功的回调
console.log('successed');
console.log(info)
},function(info){//失败的回调
console.log('error');
console.log(info);
},{//定位选项
})
window.navigator.geolocation.getCurrentPosition(function(info){//成功的回调
console.log('successed');
console.log(info)
},function(info){//失败的回调
console.log('error');
console.log(info);
},{//定位选项
})
本文标题:地理位置
本文链接:https://www.haomeiwen.com/subject/savtmttx.html
网友评论