diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md index 81f7759e3d366fe056e99c7e87e4957e831261cd..df834dddcca95d853221711878b045e13c46c8a0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md @@ -2263,10 +2263,10 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> **示例** -``` +```js let kvStore; kvStore.on('syncComplete', function (data) { - console.log("syncComplete callback call data: " + data); + console.log("callback call data: " + data); }); ``` @@ -2290,10 +2290,10 @@ off(event:'dataChange', observer?: Callback<ChangeNotification>): void ```js let kvStore; kvStore.on('dataChange', function (data) { - console.log("syncComplete callback call data: " + data); + console.log("callback call data: " + data); }); kvStore.off('dataChange', function (data) { - console.log("syncComplete callback call data: " + data); + console.log("callback call data: " + data); }); ```