From cbf9948a29deedc8e439387d5aa6cf0853099a84 Mon Sep 17 00:00:00 2001 From: leiiyb Date: Tue, 10 Jan 2023 18:59:55 +0800 Subject: [PATCH] modify the spelling problem of the sample code Signed-off-by: leiiyb --- .../apis/js-apis-data-relationalStore.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index 13995ff9da..8ae2e37c6e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -57,14 +57,14 @@ const STORE_CONFIG = { name: "RdbTest.db", securityLevel: data_rdb.SecurityLevel.S1 } -data_rdb.getRdbStore(context, STORE_CONFIG, function (err, RdbStore) { +data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { if (err) { console.info("Get RdbStore failed, err: " + err) return } - if (rdbStore.openStatus == OpenStatus.ON_CREATA) { + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { console.log("RdbStore status is ON_CREATA") - } else if (rdbStore.openStatus == OpenStatus.ON_OPEN) { + } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { return @@ -90,14 +90,14 @@ const STORE_CONFIG = { name: "RdbTest.db", securityLevel: data_rdb.SecurityLevel.S1 } -data_rdb.getRdbStore(context, STORE_CONFIG, function (err, RdbStore) { +data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { if (err) { console.info("Get RdbStore failed, err: " + err) return } - if (rdbStore.openStatus == OpenStatus.ON_CREATA) { + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { console.log("RdbStore status is ON_CREATA") - } else if (rdbStore.openStatus == OpenStatus.ON_OPEN) { + } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { return @@ -152,9 +152,9 @@ const STORE_CONFIG = { } let promise = data_rdb.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == OpenStatus.ON_CREATA) { + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { console.log("RdbStore status is ON_CREATA") - } else if (rdbStore.openStatus == OpenStatus.ON_OPEN) { + } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { return @@ -184,9 +184,9 @@ const STORE_CONFIG = { } let promise = data_rdb.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == OpenStatus.ON_CREATA) { + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { console.log("RdbStore status is ON_CREATA") - } else if (rdbStore.openStatus == OpenStatus.ON_OPEN) { + } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { return -- GitLab