在小程序中找到manifest.json,在源码视图中添加
"requiredPrivateInfos" : [
"getLocation",
"startLocationUpdate",
"onLocationChange",
"startLocationUpdateBackground"
],然后在页面中应用。即可获取到当前位置的经纬度坐标
在小程序中找到manifest.json,在源码视图中添加
"requiredPrivateInfos" : [
"getLocation",
"startLocationUpdate",
"onLocationChange",
"startLocationUpdateBackground"
],然后在页面中应用。即可获取到当前位置的经纬度坐标