```javascript
// 获取图片宽高
imgspecsFct(file) {
console.log(file)
var width='';
var height='';
var that=this;
const isSize = new Promise(function(resolve, reject) {
let _URL = window.URL || window.webkitURL;
let img = new Image();
img.onload = function () {
that.fileList[that.fileList.length-1].width=img.width;
that.fileList[that.fileList.length-1].height=img.height;
console.log('图片宽高:',that.fileList[that.fileList.length-1])
}
img.src = _URL.createObjectURL(file.raw)
}).then( () => {}, () => {})
},
// 清除vdeio
remove(selectors) {
selectors.removeNode = [];
if (selectors.length != undefined) {
var len = selectors.length;
for (var i = 0; i
前端获取视频或图片的实际宽高
最新推荐文章于 2023-08-23 18:37:51 发布