未验证 提交 50c4a7ca 编写于 作者: 李子慧 提交者: Gitee

【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/database/database-mdds-guidelines.md.示例代码格式不规范

示例代码格式不规范
Signed-off-by: lizihui1<zhlifm@isoftstone.com>
Signed-off-by: N李子慧 <zhlifm@isoftstone.com>
上级 d78f7086
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
kvManager = manager; kvManager = manager;
}); });
} catch (e) { } catch (e) {
console.log("An unexpected error occurred. Error:" + e); console.log("An unexpected error occurred. Error: " + e);
} }
``` ```
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
kvStore = store; kvStore = store;
}); });
} catch (e) { } catch (e) {
console.log("An unexpected error occurred. Error:" + e); console.log("An unexpected error occurred. Error: " + e);
} }
``` ```
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
console.log("put success"); console.log("put success");
}); });
}catch (e) { }catch (e) {
console.log("An unexpected error occurred. Error:" + e); console.log("An unexpected error occurred. Error: " + e);
} }
``` ```
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
}); });
}); });
}catch (e) { }catch (e) {
console.log("An unexpected error occurred. Error:" + e); console.log("An unexpected error occurred. Error: " + e);
} }
``` ```
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
// 1000表示最大延迟时间为1000ms // 1000表示最大延迟时间为1000ms
kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000); kvStore.sync(deviceIds, distributedData.SyncMode.PUSH_ONLY, 1000);
}catch (e) { }catch (e) {
console.log("An unexpected error occurred. Error:" + e); console.log("An unexpected error occurred. Error: " + e);
} }
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册