点读时,点下一个音频时,上一个音频停了,放下个音频?
if(p){
p.text && wx.showToast({
title: p.text,
icon:'none',
success(res) {
//这里操作
const innerAudioContext = wx.createInnerAudioContext()
innerAudioContext.autoplay = true
innerAudioContext.src = p.mp3url//调用音源
innerAudioContext.onPlay(() => {
console.log('开始播放')
})
innerAudioContext.onError((res) => {
console.log(res.errMsg)
console.log(res.errCode)
})