offLocationChange 无法停止onLocationChange的调用?
发布于 5 年前 作者 leilai 10726 次浏览 来自 问答

wx.onLocationChange 执行之后;

我执行:  wx.offLocationChange((res) => {

      console.log(res,'取消监听实时地理位置变化事件'

      })

发现 日志 console.log(res,'取消监听实时地理位置变化事件')  根本没有输出。并且onLocationChange一直在执行。


 

1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部