首页 > 技术文章 > 获取图片默认长宽
xiayihaoqing 2022-04-13 15:39 原文
使用img的@load方法,通过ref获取节点的naturalWidth和naturalHeight