offLocationChange 回调函数没有作用不生效?
发布于 5 年前 作者 fang62 8993 次浏览 来自 问答

官方文档说明是有回调函数的。想要记录一下关闭时的位置信息、发现这个是假回调。

2 回复

{“options”:[{“title”:“微信版本号”,“tip”:“无”,“isPrivate”:false,“error”:""},{“title”:“系统版本号”,“tip”:“无”,“isPrivate”:false,“error”:""},{“title”:“以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)",“tip”:“无”,“isPrivate”:false,“error”:""}],“imageSet”:0,“imageSetName”:“上传图片”,“DocId”:"0002e4b7ec4d085417dbbdae75f400”}

wx.offLocationChange(res => {

        console.log(res)

      }

    );

打印不出东西

回到顶部