摘要:
1 var contextMap = canvasMap.getContext('2d');2 var imagedataMap=contextMap.getImageData(0,0,canvasMap.width,canvasMap.height);3 var contextPrint = canvasPrint.getContext('2d');4 contextPrint.putImageData(imagedataMap, 0, 0); 在本地运行这段代码时,就会报SECURITY_ERR:DOM Exception 18错误,至于原因,因为本地... 阅读全文