现在主流浏览器对音频做了一些限制audio的autoplay属性没有作用了 解决方案一: 使用embeb标签 <embed src="music/G.E.M.邓紫棋-飘向北方(Live).mp3"> 方案二:使用iframe,不过iframe会阻断js执行,所以必须放在body最后 <iframe src = "music/G.E.M.邓紫棋-飘向北方(Live).mp3" allow = "autoplay" /> </body>