标签:json err 接口 ESS class type function build UNC
{"indoor_building_id":"","latitude":"39.935519","accuracy":"15.0",‘indoor_building_floor":"1000","indoor_building_type"-1","speed":"0.0","longitude":116.341028”,"errMsg":"getLocation:ok"}
获取用户地理位置
// 7.2 获取当前地理位置
document.querySelector(‘#getLocation‘).onclick = function() {
wx.getLocation({
success: function (res) {
if (res.checkResult.getLocation == false) {
alert(‘你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!‘);
return;
}
alert(JSON.stringify(res));
},
cancel: function(res) {
alert(‘用户拒绝授权获取地理位置‘);
}
});
};
标签:json err 接口 ESS class type function build UNC
原文地址:https://www.cnblogs.com/panjinzhao/p/12165730.html