From 421015792c3297686446e3826d74d89ac9e4ac92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Fri, 25 Mar 2022 10:16:47 +0000 Subject: [PATCH] update zh-cn/application-dev/database/database-distributedobject-guidelines.md. Signed-off-by: @ge-yafang --- .../database/database-distributedobject-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/database/database-distributedobject-guidelines.md b/zh-cn/application-dev/database/database-distributedobject-guidelines.md index 60725c7fd0..24f54aab73 100644 --- a/zh-cn/application-dev/database/database-distributedobject-guidelines.md +++ b/zh-cn/application-dev/database/database-distributedobject-guidelines.md @@ -97,7 +97,7 @@ 以下为监听对象数据变更的代码示例。 ```js - changeCallback : function (sessionId, changeData) { + function changeCallback(sessionId, changeData) { console.info("change" + sessionId); if (changeData != null && changeData != undefined) { @@ -147,7 +147,7 @@ 8. 监听分布式对象的上下线。可以监听对端分布式数据对象的上下线。 以下为访问对象的代码示例: ```js - statusCallback : function (sessionId, networkid, status) { + function statusCallback(sessionId, networkid, status) { this.response += "status changed " + sessionId + " " + status + " " + networkId; } -- GitLab