image.onload 中加载失效
image.onload = function(){ context.drawImage(image,0,0,canvas.width,canvas.height); largeContext.drawImage(image,0,0); }
为什么 “largeContext.drawImage(image,0,0);”放到image.onload 里面加载,放大镜效果就是失效
image.onload = function(){ context.drawImage(image,0,0,canvas.width,canvas.height); largeContext.drawImage(image,0,0); }
为什么 “largeContext.drawImage(image,0,0);”放到image.onload 里面加载,放大镜效果就是失效
2015-09-22
举报