音频对象innerAudioContext的取消监听回调怎么不执行?
innerAudioContext.src="https://www.runoob.com/try/demo_source/horse.mp3" innerAudioContext.play();//兼容起见用它 innerAudioContext.onPlay(() => { console.log('开始播放'); }) //innerAudioContext.offPlay() 解开注释不会打印onplay回调 innerAudioContext.offPlay(() => { console.log("取消了监听") }) 我看文档上offPlay() 方法有回调函数,直接offPlay() 是有效的,那么如何触发他的回调呢?