From 0f223d62dc93c797b8a63e73df2ab7ecf96f5d8c Mon Sep 17 00:00:00 2001 From: zhaolinglan Date: Wed, 28 Sep 2022 23:38:27 +0800 Subject: [PATCH] modify for format Signed-off-by: zhaolinglan --- .../apis/js-apis-inputmethod-extension-context.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md index 3d8bf05097..3d7a9ad9e0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md @@ -47,10 +47,11 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; ```js let want = { - 'bundleName': 'com.example.myapp', - 'abilityName': 'MyAbility'}; - this.context.startAbility(want, (err) => { - console.log('startAbility result:' + JSON.stringify(err)); + 'bundleName': 'com.example.myapp', + 'abilityName': 'MyAbility' + }; + this.context.startAbility(want, (err) => { + console.log('startAbility result:' + JSON.stringify(err)); }); ``` @@ -118,7 +119,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& windowMode: 0, }; this.context.startAbility(want, options, (error) => { - console.log('error.code = ' + error.code) + console.log('error.code = ' + error.code) }) ``` @@ -140,7 +141,7 @@ terminateSelf(callback: AsyncCallback<void>): void; ```js this.context.terminateSelf((err) => { - console.log('terminateSelf result:' + JSON.stringify(err)); + console.log('terminateSelf result:' + JSON.stringify(err)); }); ``` -- GitLab