检测图像何时已加载到img标签中 [英] Detect when image has loaded in img tag
本文介绍了检测图像何时已加载到img标签中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Angular 2
,我需要检测图像是否已加载到图像标签中.
I am using Angular 2
and I need to detect if an image has loaded in an image tag.
有活动吗?
类似这样的东西:
<img [src]="imagesource" [loaded]="dosomething()">
推荐答案
<img [src]="imagesource" (load)="dosomething()">
这篇关于检测图像何时已加载到img标签中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文