# setStorage
APP本地化存储存值
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
-- | String | Y | 需要存储的key | |
-- | String | Y | 需要存储的值 | |
-- | Boolean | N | false | 拼接时间戳 |
-- | Number | N | 0 | 时间戳时延 |
# 接口请求示例
nativeService.setStorage('COMMON_DCP_MODEL_DATA', storageDataCopy);
# 返回参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
-- | Promise | -- | 存储值之后的回调 |
# 接口返回示例
nativeService.setStorage('COMMON_DCP_MODEL_DATA', storageDataCopy).then()