微信iOS版音频为何不能自动播放?
- 内容介绍
- 文章标签
- 相关推荐
本文共计55个文字,预计阅读时间需要1分钟。
解决iOS微信audio无法自动播放的问题,可以使用以下代码:
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() }) }
本文共计55个文字,预计阅读时间需要1分钟。
解决iOS微信audio无法自动播放的问题,可以使用以下代码:
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() }) }

