사업부를 사용하여 클릭 할 때 이미지를 다운로드하고 ...toDataURL 이미지 다운로드이이 작동 확장자
document.location.href = save_canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream");
하지만 다운로드는 확장자가없는 그냥 '다운로드'
라고하는 이미지가 없습니다 나는이 같은 이름을 설정 시도...
document.location.download = "myfile.jpg";
document.location.href = save_canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream");
하지만 아무 효과가 없다, 어디서 잘못된 것입니까?
https://stackoverflow.com/questions/12796513/html5-canvas-to-png-file –