From a01be59ffbd146f7fd24c4fc11cba2891c30625a Mon Sep 17 00:00:00 2001 From: zyjhandsome Date: Thu, 11 May 2023 11:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyjhandsome --- .../application-models/arkts-ui-widget-event-call.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/application-models/arkts-ui-widget-event-call.md b/zh-cn/application-dev/application-models/arkts-ui-widget-event-call.md index 82ae48f37d..c510ff4381 100644 --- a/zh-cn/application-dev/application-models/arkts-ui-widget-event-call.md +++ b/zh-cn/application-dev/application-models/arkts-ui-widget-event-call.md @@ -55,12 +55,12 @@ function FunACall(data) { // 获取call事件中传递的所有参数 - console.log('FunACall param:' + JSON.stringify(data.readString())); + console.info('FunACall param:' + JSON.stringify(data.readString())); return null; } function FunBCall(data) { - console.log('FunACall param:' + JSON.stringify(data.readString())); + console.info('FunACall param:' + JSON.stringify(data.readString())); return null; } @@ -72,7 +72,7 @@ this.callee.on('funA', FunACall); this.callee.on('funB', FunBCall); } catch (error) { - console.log('register failed with error. Cause: ' + JSON.stringify(error)); + console.error(`Failed to register callee on. Cause: ${JSON.stringify(err)}`); } } @@ -81,8 +81,8 @@ try { this.callee.off('funA'); this.callee.off('funB'); - } catch (error) { - console.log('register failed with error. Cause: ' + JSON.stringify(error)); + } catch (err) { + console.error(`Failed to register callee off. Cause: ${JSON.stringify(err)}`); } } }; -- GitLab