Skip to content

Home > sculp-js > weBtoa

weBtoa() function

字符串编码成Base64, 平替浏览器的btoa, 不包含中文的处理 (适用于任何环境,包括小程序)

Signature:

typescript
export declare function weBtoa(string: string): string;

Parameters

Parameter

Type

Description

string

string

Returns:

string

{string}

Released under the MIT License.