Qrcode Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
问题:canvas绘制的图片地址跨域报错
解决方法:
在绘制二维码前设置图片属性
image.src = src;
image.crossOrigin = "anonymous";
或者
image.setAttribute("crossOrigin",'anonymous');