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("关闭声音");
                }
            });
        },this

相关文章
相关标签/搜索