let img = new Image();
img.src = '图片的链接';
img.onload = async () => {
console.log(img.width)
console.log(img.height)
};`
注意:一定要onload,要不是异步的,取不到值
封装:
async function getVideo(fileUrl: any) {
return new Promise((resolve)