minigame-std
Version:
Mini Game Standard Development Library.
30 lines (17 loc) • 555 B
Markdown
[**minigame-std**](../README.md)
***
[minigame-std](../README.md) / encodeBase64
# Function: encodeBase64()
```ts
function encodeBase64(data): string
```
将字符串数据编码为 Base64 格式。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | `string` | 需要编码的字符串数据。 |
## Returns
`string`
编码后的 Base64 字符串。
## Defined in
[src/std/base64/mod.ts:11](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/base64/mod.ts#L11)