<code>$(window).bind('beforeunload', function(){ if(localId) { wx.stopVoice({ localId:localId }); } }); </code>
离开当前页面调用不了wx.stopVoice接口?要怎么办才能离开页面时音频也停止播放
<code>$(window).bind('beforeunload', function(){ if(localId) { wx.stopVoice({ localId:localId }); } }); </code>
离开当前页面调用不了wx.stopVoice接口?要怎么办才能离开页面时音频也停止播放