onLoad:function(){ //异步 network.request(){ success:res=>{ var innerAudioContext = wx.createInnerAudioContext() innerAudioContext.onPlay(()=>{} innerAudioContext.src = res.music innerAudioContext.obeyMuteSwitch = false innerAudioContext.play() } } }
innerAudioContext在Ios上没声音安卓上播放正常,ios上面就没声音
2018-12-06