audio.play dom对象 JQ不支持play

  */
        PausePlayVoice:function() {
            $("#spPauseAudio").click(function() {
                var audio =document.getElementById("audio");;
                if ($(this).text() == "关闭声音") {
                    audio.pause();
                    $(this).text("开启声音");
                } else {
                   audio.play();
                    $(this).text("关闭声音");
                }
            });
        },

原文地址:https://www.cnblogs.com/kunlunmountain/p/6244887.html