未验证 提交 3105805a 编写于 作者: F franck_lee 提交者: Gitee

【OpenHarmony开源贡献者计划2022】修改拼写错误

Signed-off-by: franck_lee <1633135440@qq.com> 
Signed-off-by: Nfranck_lee <1633135440@qq.com>
上级 8d698b1e
......@@ -1058,10 +1058,10 @@ const valueBucket3 = {
var valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3);
rdbStore.batchInsert("EMPLOYEE", valueBuckets, function(status, insertNum) {
if (status) {
console.log("bathInsert is failed, status = " + status);
console.log("batchInsert is failed, status = " + status);
return;
}
console.log("bathInsert is successful, the number of values that were inserted = " + insertNum);
console.log("batchInsert is successful, the number of values that were inserted = " + insertNum);
})
```
......@@ -1108,9 +1108,9 @@ const valueBucket3 = {
var valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3);
let promise = rdbStore.batchInsert("EMPLOYEE", valueBuckets);
promise.then((insertNum) => {
console.log("bathInsert is successful, the number of values that were inserted = " + insertNum);
console.log("batchInsert is successful, the number of values that were inserted = " + insertNum);
}).catch((status) => {
console.log("bathInsert is failed, status = " + status);
console.log("batchInsert is failed, status = " + status);
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册