plus.geolocation.getCurrentPosition(function(pos) {
console.log(JSON.stringify(pos));
}, function(e) {
console.log(JSON.stringify(e));
}, {
provider: 'baidu',
coordsType: 'bd09ll',
timeout: 2000
});
打印结果
{"coordsType":"bd09ll","address":{},"coords":{"latitude":5e-324,"longitude":5e-324,"accuracy":0,"altitude":5e-324,"heading":null,"speed":0,"altitudeAccuracy":0},"timestamp":1604673373000}
夜神模拟器已经选择了定位,且测试百度地图app可以定位,这是什么原因呢?
1 个回复
baiyun_rain - 多敲代码
请问解决了吗?