未验证 提交 36fb52a2 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/database/database-storage-guidelines.md.

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 90c70f91
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
```js ```js
promise.then((storage) => { promise.then((storage) => {
let getPromise = storage.put('startup', 'auto'); // 保存数据到缓存的storage示例中。 let getPromise = storage.put('startup', 'auto'); // 保存数据到缓存的storage实例中
getPromise.then(() => { getPromise.then(() => {
console.info("Succeeded in putting the value of startup."); console.info("Succeeded in putting the value of startup.");
}).catch((err) => { }).catch((err) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册