my.removeStorage
Remove cached data.
This is an asynchronous interface.
Removing the webview embedded storage data will not remove the storage data of the Mini Program.
Sample Code
copy
my.removeStorage({
key: 'currentCity',
success: function(){
my.alert({content: 'remove success'});
}
});
Parameters
Property | Type | Required | Description |
key | String | Yes | Cache data key. |
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |