微信iOS版音频播放为何不能自动启动?
- 内容介绍
- 文章标签
- 相关推荐
本文共计63个文字,预计阅读时间需要1分钟。
解决iOS微信音频无法自动播放的问题,可以直接在页面挂载后进行如下操作:
javascriptmounted() { this.mySound=this.$refs.audio; this.mySound.loop=true; window.wx.ready(()=> { this.mySound.play(); });}
mounted () { this.mySound = this.$refs.audio this.mySound.loop = true window.wx.ready(() => { this.mySound.play() }) }
本文共计63个文字,预计阅读时间需要1分钟。
解决iOS微信音频无法自动播放的问题,可以直接在页面挂载后进行如下操作:
javascriptmounted() { this.mySound=this.$refs.audio; this.mySound.loop=true; window.wx.ready(()=> { this.mySound.play(); });}
mounted () { this.mySound = this.$refs.audio this.mySound.loop = true window.wx.ready(() => { this.mySound.play() }) }

