1
2
3 var img = document.querySelector('.i');
4 img.setAttribute('src','data/'+e[0]);
5 function loadImage() {
6 context.drawImage(img,0,0)
7 console.log('Yes');
8 }
9 setTimeout(loadImage,100); // set timeout so that the code can take few moment to load;