原文:http://www.2cto.com/kf/201209/156169.html 前端的代码: [javascript] function drawArrow(angle) { //Init canvas var canvas = $('#cv_Arrow')[0]; var context = canvas.getContext('2d'); var width = canvas.width; var height = canvas…
js var url = canvas.toDataURL();//把canvas中的图片变成data:image C# string filepath = ""; string imgData = Request["url"].ToString(); var date = DateTime.Now.ToString("yyyyMMddmsms"); if (imgData.StartsWith("data:image/png;base…