const back = wx.createInnerAudioContext();
pages({
data:{
},
backmusic:function(){
back.title = "开启继续阅读";
back.src = "/pages/video/openblock.mp3";
back.play();
back.onPlay(() => {
console.log("音乐播放开始");
});
back.onEnded(() => {
console.log("音乐播放结束");
})
},
onLoad{
var that = this;
that.backmusic()
}
})