小程序接口 - Channel.off

wmpf.Channel.off(string event, function callback)

取消监听已注册过的第三方 App 服务事件

参数

Object object

属性 类型 默认值 必填 说明
event string 是 需要取消监听的事件名
callback function 是 on 时传入的 callback

示例代码

wmpf.Channel.on('test', callback)
wmpf.Channel.off('test', callback)
posted on 2025-02-24 15:49  AtlasLapetos  阅读(44)  评论(0)    收藏  举报