var src = 'https://www.xxxx'
var img = new Image();
img.src = src
img.onload = function () {
console.log(img.height)//高度
};
vue查看图片高度
最新推荐文章于 2023-01-30 15:21:30 发布
var src = 'https://www.xxxx'
var img = new Image();
img.src = src
img.onload = function () {
console.log(img.height)//高度
};