让它工作,我想知道是否是最好的方法:
// Take off the "data:image/png;base64," prefix
var b64 = canvas.toDataURL().split(',', 2)[1];
filepicker.store(
b64,
{
mimetype: 'image/png',
base64decode: true
}
...
让它工作,我想知道是否是最好的方法:
// Take off the "data:image/png;base64," prefix
var b64 = canvas.toDataURL().split(',', 2)[1];
filepicker.store(
b64,
{
mimetype: 'image/png',
base64decode: true
}
...