uni.getLocation获取定位,经纬度返回了5e-324。
uni.getLocation({
type: "gcj02",
geocode: true,
success: (res) => {
console.log(res.longitude);// 打印'5e-324'
},
});
uni.getLocation获取定位,经纬度返回了5e-324。
uni.getLocation({
type: "gcj02",
geocode: true,
success: (res) => {
console.log(res.longitude);// 打印'5e-324'
},
});
1***@163.com
改成默认的坐标系就好了
2024-10-16 16:43