提交 3bf9cb3e 编写于 作者: A Annie_wang

update docs

Signed-off-by: NAnnie_wang <annie.wangli@huawei.com>
上级 c2fd9870
...@@ -2264,10 +2264,10 @@ Subscribes to data synchronization completion events. This method uses a synchro ...@@ -2264,10 +2264,10 @@ Subscribes to data synchronization completion events. This method uses a synchro
**Example** **Example**
``` ```js
let kvStore; let kvStore;
kvStore.on('syncComplete', function (data) { kvStore.on('syncComplete', function (data) {
console.log("syncComplete callback call data: " + data); console.log("callback call data: " + data);
}); });
``` ```
...@@ -2291,10 +2291,10 @@ Unsubscribes from data change events. This method uses a synchronous callback to ...@@ -2291,10 +2291,10 @@ Unsubscribes from data change events. This method uses a synchronous callback to
``` ```
let kvStore; let kvStore;
kvStore.on('dataChange', function (data) { kvStore.on('dataChange', function (data) {
console.log("syncComplete callback call data: " + data); console.log("callback call data: " + data);
}); });
kvStore.off('dataChange', function (data) { kvStore.off('dataChange', function (data) {
console.log("syncComplete callback call data: " + data); console.log("callback call data: " + data);
}); });
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册