使用 tml2canvas 方法(该方法想了解的去百度) base64方法(完整的代码) function getBase64Image(img: any, width?: any, height?: any) { var canvas = document.createElement("canvas"); canvas.width = width ? width : img.width; canvas.height = height ? height : img.height...... 查看更多