摘要: From:https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm [问题] am using npm v1.0.104/ 阅读全文
posted @ 2018-05-28 14:39 今夜太冷 阅读(327) 评论(0) 推荐(0) 编辑
摘要: From: https://bytenota.com/javascript-convert-image-to-base64-string/ his post shows you two approaches how to convert an image to a Base64 string usi 阅读全文
posted @ 2018-05-28 11:41 今夜太冷 阅读(959) 评论(0) 推荐(0) 编辑
摘要: 来自: https://ourcodeworld.com/articles/read/182/the-canvas-has-been-tainted-by-cross-origin-data-and-tainted-canvases-may-not-be-exported These errors  阅读全文
posted @ 2018-05-28 11:07 今夜太冷 阅读(4410) 评论(0) 推荐(0) 编辑
摘要: canvas绘制图片,由于浏览器的安全考虑,如果在使用canvas绘图的过程中,使用到了外域的图片资源,那么在toDataURL()时会抛出安全异常: 解决方案1. 如果想使用toDataURL()生成图片文件的话,在canvas绘图过程中使用的图片应该是当前域下的。 解决方案2. 访问的服务器允许 阅读全文
posted @ 2018-05-28 10:59 今夜太冷 阅读(1475) 评论(0) 推荐(0) 编辑