UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

25 lines (19 loc) 1.09 kB
[**minigame-std**](../../README.md) *** [minigame-std](../../README.md) / storage # storage ## Functions | Function | Description | | ------ | ------ | | [clear](functions/clear.md) | 清除所有的本地存储数据。 | | [clearSync](functions/clearSync.md) | `clear` 的同步版本。 | | [getItem](functions/getItem.md) | 从本地缓存中读取数据。 | | [getItemSync](functions/getItemSync.md) | `getItem` 的同步版本。 | | [getLength](functions/getLength.md) | 获取本地存储数据的长度。 | | [getLengthSync](functions/getLengthSync.md) | `getLength` 的同步版本。 | | [hasItem](functions/hasItem.md) | 检查本地存储中是否存在指定的数据。 | | [hasItemSync](functions/hasItemSync.md) | `hasItem` 的同步版本。 | | [removeItem](functions/removeItem.md) | 从本地缓存中移除指定的数据。 | | [removeItemSync](functions/removeItemSync.md) | `removeItem` 的同步版本。 | | [setItem](functions/setItem.md) | 将数据存储在本地缓存中。 | | [setItemSync](functions/setItemSync.md) | `setItem` 的同步版本。 |