未验证 提交 9c3b9f74 编写于 作者: O openharmony_ci 提交者: Gitee

!8500 【轻量级...

!8500 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】application-dev/database/database-distributedobject-guidelines.md.缩进不规范
Merge pull request !8500 from 欧阳智/N/A
......@@ -146,17 +146,17 @@
```js
function changeCallback(sessionId, changeData) {
console.info("change" + sessionId);
console.info("change" + sessionId);
if (changeData != null && changeData != undefined) {
changeData.forEach(element => {
console.info("changed !" + element + " " + local_object[element]);
});
}
}
if (changeData != null && changeData != undefined) {
changeData.forEach(element => {
console.info("changed !" + element + " " + local_object[element]);
});
}
}
// 发起方要在changeCallback里刷新界面,则需要将正确的this绑定给changeCallback
local_object.on("change", this.changeCallback.bind(this));
// 发起方要在changeCallback里刷新界面,则需要将正确的this绑定给changeCallback
local_object.on("change", this.changeCallback.bind(this));
```
6. 修改对象属性,对象属性支持基本类型(数字类型、布尔类型、字符串类型)以及复杂类型(数组、基本类型嵌套等)。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册