<p>播放,暂停再播放视频。</p> <video id="myVideo" width="320" height="176" controls=""> <source src="/statics/demosource/mov_bbb.mp4" type="video/mp4"> <source src="/statics/demosource/mov_bbb.ogg" type="video/ogg"> 您的浏览器不支持 HTML5 video 标签 </video> <script> var vid = document.getElementById("myVideo"); vid.addEventListener("playing", function() { alert("视频正在播放"); }); </script>