wx.getLocation获取到speed 在安卓一直为0 ios为-1
wx.getLocation({
type: ‘wgs84’,
success(res) {
console.log(res.speed)
},
fail(res) {
console.log(JSON.stringify(res))
}
})
wx.getLocation({
type: ‘wgs84’,
success(res) {
console.log(res.speed)
},
fail(res) {
console.log(JSON.stringify(res))
}
})