以下是几种方法:var myVideo=document.getElementById("video1"); if (myVideo.paused) { myVideo.play(); } else { myVideo.pause(); } 请查看完整的工作示例这里。