关于Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.错误,找到浏览器快捷方式,右键,属性,目标,找到.exe,后面加上 --disable-web-security,中间有个空格,比如我的QQ浏览器:"...\QQBrowser\QQBrowser.exe" --disable-web-security,然后关掉浏览器,再打开就行了
2016-08-06
老师,你讲的很仔细,对于canvas,我理解更多了,谢谢老师,希望老师能够多多更新视频,,给你一个大赞。。。。。
2016-08-04
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
window.onlad = function(){
canvas.width = 122;
canvas.height = 244;
}
var context = canvas.getContext('2d');
window.onlad = function(){
canvas.width = 122;
canvas.height = 244;
}
2016-08-02
http://stackoverflow.com/questions/22097747/getimagedata-error-the-canvas-has-been-tainted-by-cross-origin-data
https://www.base64-image.de/
对图片进行base64编码
demo图片使用
image.src="base code"
https://www.base64-image.de/
对图片进行base64编码
demo图片使用
image.src="base code"
2016-07-26