From f84a82599a45da65fe7c053e514107efe806b224 Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Mon, 21 Nov 2022 10:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: I972d88b1b44585d464d8c60a482145f4a8c166e2 --- zh-cn/application-dev/reference/apis/js-apis-cooperate.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-cooperate.md b/zh-cn/application-dev/reference/apis/js-apis-cooperate.md index c3974d3863..638e6c9983 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-cooperate.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cooperate.md @@ -359,7 +359,7 @@ off(type: 'cooperation', callback?: AsyncCallback\): void function callback(event) { console.log(`Keyboard mouse crossing event: ${JSON.stringify(event)}`); return false; -}, +} try { inputDeviceCooperate.on('cooperation', callback); inputDeviceCooperate.off("cooperation", callback); @@ -372,7 +372,7 @@ try { function callback(event) { console.log(`Keyboard mouse crossing event: ${JSON.stringify(event)}`); return false; -}, +} try { inputDeviceCooperate.on('cooperation', callback); inputDeviceCooperate.off("cooperation"); -- GitLab