@@ -8,7 +8,6 @@ Lightweight storage provides applications with data processing capability and al
...
@@ -8,7 +8,6 @@ Lightweight storage provides applications with data processing capability and al
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import
## Modules to Import
```js
```js
...
@@ -19,10 +18,10 @@ import data_storage from '@ohos.data.storage';
...
@@ -19,10 +18,10 @@ import data_storage from '@ohos.data.storage';
Obtains the value corresponding to a key. If the value is null or not in the default value format, the default value is returned. This API uses an asynchronous callback to return the result.
Obtains the value corresponding to a key. If the value is null or not of the default value type, **defValue** is returned. This API uses an asynchronous callback to return the result.
Obtains the value corresponding to a key. If the value is null or not in the default value format, the default value is returned. This API uses a promise to return the result.
Obtains the value corresponding to a key. If the value is null or not of the default value type, **defValue** is returned. This API uses a promise to return the result.