UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 552 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / encodeBase64 # Function: encodeBase64() ```ts function encodeBase64(data): string ``` Defined in: [src/std/base64/mod.ts:11](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/base64/mod.ts#L11) 将字符串数据编码为 Base64 格式。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `string` | 需要编码的字符串数据。 | ## Returns `string` 编码后的 Base64 字符串。