js 将字符串转换成base64格式

1、字符串必须是buffer类型

2、.toString('base64')即可

猜你喜欢

转载自blog.csdn.net/weixin_43294560/article/details/113756706