📜  在 javascript 代码示例中更改视频 src

📅  最后修改于: 2022-03-11 15:03:28.293000             🧑  作者: Mango

代码示例1
var video = document.getElementById('video');
var source = document.getElementById('source');

source.setAttribute('src', 'http://www.tools4movies.com/trailers/1012/Kill%20Bill%20Vol.3.mp4');

video.load();
video.play();