Skip to content

Home > sculp-js > b64encode

b64encode() function

将原始字符串,包括中文内容,转换为base64编码的字符串(高性能,且支持Web、Node、小程序等任意平台)

Signature:

typescript
export declare function b64encode(rawStr: string): string;

Parameters

Parameter

Type

Description

rawStr

string

原始字符串,包括中文内容

Returns:

string

base64编码的字符串

Released under the MIT License.