Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | Storage key identifier |
| success | Function | No | Callback with data |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| data | Object/String | Stored data |
Code Example
Related APIs
my.setStorage
Store data
my.getStorageSync
Get data synchronously