页面没有交互,js不能触发播放
DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
<video id="video" muted autoplay> <button id="unmuteButton"></button> <script> unmuteButton.addEventListener('click', function() { video.muted = false; }); </script>