未验证 提交 497d52fd 编写于 作者: M MT55555 提交者: Gitee

update zh-cn/application-dev/database/database-relational-guidelines.md. 修改代码格式

修改代码缩进
Signed-off-by: Ntingmac <tingmac@isoftstone.com>
上级 3cbc5a2f
...@@ -382,17 +382,17 @@ ...@@ -382,17 +382,17 @@
```js ```js
let promiseBackup = rdbStore.backup("dbBackup.db") let promiseBackup = rdbStore.backup("dbBackup.db")
promiseBackup.then(()=>{ promiseBackup.then(() => {
console.info('Backup success.') console.info('Backup success.')
}).catch((err)=>{ }).catch((err) => {
console.info('Backup failed, err: ' + err) console.info('Backup failed, err: ' + err)
}) })
``` ```
```js ```js
let promiseRestore = rdbStore.restore("dbBackup.db") let promiseRestore = rdbStore.restore("dbBackup.db")
promiseRestore.then(()=>{ promiseRestore.then(() => {
console.info('Restore success.') console.info('Restore success.')
}).catch((err)=>{ }).catch((err) => {
console.info('Restore failed, err: ' + err) console.info('Restore failed, err: ' + err)
}) })
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册