📅  最后修改于: 2022-03-11 14:56:11.684000             🧑  作者: Mango
const dataURL = this.signaturePad.toDataURL('image/png');
const data = atob(dataURL.substring('data:image/png;base64,'.length)),
asArray = new Uint8Array(data.length);
for (var i = 0, len = data.length; i < len; ++i) {
asArray[i] = data.charCodeAt(i);
}
const blob = new Blob([asArray], { type: 'image/png' });