my.getLocalData
get local data with keys.
Sample Code
copy
my.call('getLocalData', {keys:['currentProvice','currentCity']}, res=>{
my.alert({
title: 'Successful getLocalData',
content: JSON.stringify(res)
});
})
Parameters
Property | Type | Required | Description |
keys | Array<String> | Yes |
Success Callback Function
The incoming parameter is of the Object type with the following attributes:
Property | Type | Required | Description |
resultCode | Number | Yes | 0: success 1002: internal error |
resultMessage | String | Yes | |
data | Object | No | { "key1": "xxxx", "key2": "xxxx", "key3": "xxxx" .... } |