wx.getLocation获取到speed 在安卓一直为0 ios为-1
发布于 4 年前 作者 zhenglei 13943 次浏览 来自 问答

wx.getLocation({

type: ‘wgs84’,

success(res) {

console.log(res.speed)

},

fail(res) {

console.log(JSON.stringify(res))

}

})

1 回复

单次定位不支持speed,请关注后续的连续定位接口

回到顶部