From 02ce67e0ede90a2c90404567cfa72a11ee5c1bc1 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Thu, 25 May 2023 14:22:42 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- en/application-dev/reference/apis/js-apis-data-rdb.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-data-rdb.md b/en/application-dev/reference/apis/js-apis-data-rdb.md index 2924cc0573..3c6f7aa5b9 100644 --- a/en/application-dev/reference/apis/js-apis-data-rdb.md +++ b/en/application-dev/reference/apis/js-apis-data-rdb.md @@ -1634,7 +1634,7 @@ Executes an SQL statement that contains specified arguments but returns no value ```js const SQL_DELETE_TABLE = "DELETE FROM test WHERE name = ?" -rdbStore.executeSql(SQL_CREATE_TABLE, ['zhangsan'], function(err) { +rdbStore.executeSql(SQL_DELETE_TABLE, ['zhangsan'], function(err) { if (err) { console.info("Failed to execute SQL, err: " + err) return @@ -2045,7 +2045,7 @@ Registers an observer for this RDB store. When the data in the RDB store changes | -------- | -------- | -------- | -------- | | event | string | Yes| The value is'dataChange', which indicates a data change event.| | type | [SubscribeType](#subscribetype8) | Yes| Subscription type to register.| -| observer | Callback<Array<string>> | Yes| Observer that listens for the data changes in the RDB store.| +| observer | Callback<Array<string>> | Yes| Observer that listens for the data changes in the RDB store. **Array** indicates the ID of the peer device whose data in the database is changed.| **Example** @@ -2076,7 +2076,7 @@ Unregisters the observer of the specified type from the RDB store. This API uses | -------- | -------- | -------- | -------- | | event | string | Yes| The value is'dataChange', which indicates a data change event.| | type | [SubscribeType](#subscribetype8) | Yes| Subscription type to unregister.| -| observer | Callback<Array<string>> | Yes| Data change observer registered.| +| observer | Callback<Array<string>> | Yes| Data change observer to unregister. **Array** indicates the ID of the peer device whose data in the database is changed.| **Example** -- GitLab