使用方法 ● Image ● URL ● onload 代码: async validImageSize(file, imgWidth, imgHeight) { const img = new Image() img.src = URL.createObjectURL