my.getStorage.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | Storage key identifier |
Return Value
Returns the stored data or undefined if key doesn’t exist.Code Example
Related APIs
my.getStorage
Get data asynchronously
my.setStorageSync
Store data synchronously