📅  最后修改于: 2022-03-11 15:03:38.547000             🧑  作者: Mango
var img = document.querySelector('.i');
img.setAttribute('src','data/'+e[0]);
function loadImage() {
context.drawImage(img,0,0)
console.log('Yes');
}
setTimeout(loadImage,100); // set timeout so that the code can take few moment to load;