$(document).ready(function(){
var url = 'video.mp4'
var video = $(document.createElement('video'))
video.attr("width", 300);
video.attr("height", 150);
video.attr("src", url);
video.attr("controls", true);
video.attr("id", "video");
video[0].addEventListener("play", function() { }, false);
video[0].play();
video[0].webkitEnterFullScreen();
$('body').append(video);
})
未捕获的错误:INVALID_STATE_ERR:DOM 异常 11
我究竟做错了什么?