Top
♬ [关闭]音乐
//music //music var audio = document.getElementById('music1'); audio.muted = false; $("#music").on("click", function () { if (audio.paused) { audio.play(); $(this).css("background-color", "#999"); $(this).html("♬ [关闭]音乐"); } else { audio.pause(); $(this).css("background-color", "#fe2828"); $(this).html("♬ [开启]音乐"); } }); })