uni.chooseLocation({
success: function (res) {
console.log('选中的位置名称:' + res.name);
console.log('选中的位置经度:' + res.longitude);
console.log('选中的位置纬度:' + res.latitude);
console.log('选中的位置地址:' + res.address);
},
fail: function (err) {
console.log('选择位置失败:', err);
}
});

- 发布:2025-04-28 15:48
- 更新:2025-07-02 11:00
- 阅读:137
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window10
HBuilderX类型: 正式
HBuilderX版本号: 4.63
浏览器平台: QQ内置浏览器
浏览器版本: 131.0
项目创建方式: HBuilderX
示例代码:
操作步骤:
1
1
预期结果:
正确解决
正确解决
实际结果:
实际如截图
实际如截图
9***@qq.com (作者)
配置了h5的高德key,高德不行又配置了腾讯的,依然是这样
2025-04-29 10:40