String mc.stringToBase64(String text)

将文本字符串编码为 Base64 字符串

参数

参数 类型 默认值 必填 说明
text String 要编码的文本字符串

返回值

类型 说明
String 编码后的 Base64 字符串

示例代码:

const base64String = mc.stringToBase64('hello morecross!');

results matching ""

    No results matching ""

    results matching ""

      No results matching ""