📜  html canvas 绘制 base64 图像 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.009000             🧑  作者: Mango

代码示例2
// There are no possible ways of doing this on client side but if you are
// using Node.js try:
let a = Buffer.from('JavaScript').toString('base64');
console.log(a);

let b = Buffer.from(a, 'base64').toString();
console.log(b);