标签: javascript canvas filepicker.io
让这个工作,我想知道是否是最好的方式:
// Take off the "data:image/png;base64," prefix var b64 = canvas.toDataURL().split(',', 2)[1]; filepicker.store( b64, { mimetype: 'image/png', base64decode: true } ...
答案 0 :(得分:1)
.split(',', 2)