JS获取video真实宽高

为何80%的码农都作不了架构师?>>>   架构 JS代码ide var video = document.querySelector('video'); video.addEventListener('canplay', function () { this.width = this.videoWidth; this.height = this.videoHeight; });
相关文章
相关标签/搜索