Javascript函数将base 64图像旋转X度,并返回新的base64(Javascript function to Rotate a base 64 image by X degrees an.
functionrotateBase64Image(base64data,callback){varcanvas=document.getElementById("c");varctx=canvas.getContext("2d");varimage=newImage();image.src=base64data;image.onload=function(){ctx.translate(imag