uni-app 获取地址位置

uni.getLocation  获取当前的地理位置、速度。 在微信小程序中,当用户离开应用后,此接口没法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用git uni.getLocation({ type: 'wgs84 ', success: function (res) { console.log('经度:' + res.longitude);
相关文章
相关标签/搜索