未验证 提交 0607eea9 编写于 作者: O openharmony_ci 提交者: Gitee

!3739 文档修复

Merge pull request !3739 from 吴冯山/master
......@@ -2263,10 +2263,10 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]&gt
**示例**
```
```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);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册