<video ref="videoPlay" controls="controls" width='100%' height="100%">
您的瀏覽器不支持 video 元素。
</video>
import video1 from './11.mp4'
this.$refs.videoPlay.src = video1;
當(dāng)有多個(gè)本地文件要播放時(shí)变泄,需要加上一個(gè)[0]
that.cameralist.forEach(item => {
that.$refs['videocard'+item.id][0].src = video2
})