语音播放offPlay问题
发布于 6 年前 作者 slin 15999 次浏览 来自 问答

在使用过程中在一个页面使用wx.createInnerAudioContext()生成的实例中,监听一个onPlay事件;在页面卸载中去取消监听onPlay事件,但是程序报错removeListener only takes instances of Function;请问如何正确的去取消监听事件? 文档中也没有详细的提及。

1 回复

你好,请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部