var img = new Image(); img.src = “1.png”; img.onload = function() { ctx.drawImage(img, -30, -105); };
收起
已经解决,只要提前把需要drawimage的元素加载出来就可以啦
报告相同问题?