// var audio = wx.createAudioContext("myAudio", this)
// audio.setSrc("http://img.chen-items.cn/" + this.data.post.postVoice)
var audio = wx.createInnerAudioContext();
audio.src = "http://img.chen-items.cn/" + this.data.post.postVoice
audio.play();
两种上下文都测试了,在工具中可以播放,在真机上就不i可以了
网友回复
那个很帅的小白:
提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。