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

posted @ 2017-01-03 14:48  zklve2  阅读(1118)  评论(0编辑  收藏  举报