Created
June 5, 2016 14:56
-
-
Save liximomo/0878d440f2a62eb43af42bb032081d49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var img=new Image(); | |
img.src="mm.jpg"; | |
img.onload=function(){ | |
var image = document.createElement('img'); | |
image.src = img; | |
document.body.appendChild(image); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment