<img src="http://site.com/image.png" />
I change src of this image on .click
event.
There can be loaded more than 20 different images, after changing src
.
1) How do I know, was image already loaded (should be cached) or it has to be loaded?
2) How to run two different functions, for loaded and not?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…