wx.getLocation({
success:function(res){
console.log(res.latitude);//当前维度 console.log(res.longitude);//当前精度 } })
wx.getLocation({
success:function(res){
wx.openLocation({
latitude:res.latitude, longitude:res.longitude }) } })
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/229259.html原文链接:https://javaforall.net
