From faedae42d7b33bbc55ecf7f8ca5bcb03ebfa8cea Mon Sep 17 00:00:00 2001 From: Hollokin Date: Wed, 23 Nov 2022 16:01:31 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=BE=93=E5=85=A5=E6=B3=95=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E3=80=91=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hollokin --- .../reference/apis/js-apis-inputmethod.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md index eb51a3f69f..04e7b3799a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -552,7 +552,7 @@ stopInputSession(callback: AsyncCallback<boolean>): void ```js try { - InputMethodController.stopInputSession((error, result) => { + inputMethodController.stopInputSession((error, result) => { if (error) { console.error('stopInputSession err: ' + JSON.stringify(error)); return; @@ -595,7 +595,7 @@ stopInputSession(): Promise<boolean> ```js try { - InputMethodController.stopInputSession().then((result) => { + inputMethodController.stopInputSession().then((result) => { if (result) { console.info('Success to stopInputSession.'); } else { @@ -637,7 +637,7 @@ showSoftKeyboard(callback: AsyncCallback<void>): void **示例:** ```js -InputMethodController.showSoftKeyboard((err) => { +inputMethodController.showSoftKeyboard((err) => { if (err === undefined) { console.info('showSoftKeyboard success'); } else { @@ -674,7 +674,7 @@ showSoftKeyboard(): Promise<void> **示例:** ```js -InputMethodController.showSoftKeyboard().then(async (err) => { +inputMethodController.showSoftKeyboard().then(async (err) => { console.log('showSoftKeyboard success'); }).catch((err) => { console.error('showSoftKeyboard err: ' + JSON.stringify(err)); @@ -709,7 +709,7 @@ hideSoftKeyboard(callback: AsyncCallback<void>): void **示例:** ```js -InputMethodController.hideSoftKeyboard((err) => { +inputMethodController.hideSoftKeyboard((err) => { if (err === undefined) { console.info('hideSoftKeyboard success'); } else { @@ -746,7 +746,7 @@ hideSoftKeyboard(): Promise<void> **示例:** ```js -InputMethodController.hideSoftKeyboard().then(async (err) => { +inputMethodController.hideSoftKeyboard().then(async (err) => { console.log('hideSoftKeyboard success'); }).catch((err) => { console.error('hideSoftKeyboard err: ' + JSON.stringify(err)); @@ -774,7 +774,7 @@ stopInput(callback: AsyncCallback<boolean>): void **示例:** ```js -InputMethodController.stopInput((error, result) => { +inputMethodController.stopInput((error, result) => { if (error) { console.error('failed to stopInput because: ' + JSON.stringify(error)); return; @@ -808,7 +808,7 @@ stopInput(): Promise<boolean> **示例:** ```js -InputMethodController.stopInput().then((result) => { +inputMethodController.stopInput().then((result) => { if (result) { console.info('Success to stopInput.'); } else { -- GitLab