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 3d8bf050979b4a04ab531a9518d9926cb2695079..3d7a9ad9e0ec73c4b87c35a0100192aeef9f46df 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)); }); ```