From 0635708d5dd70ff5d901575fd901db79d89330ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=82=A6?= Date: Mon, 27 Jun 2022 10:51:37 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-inputmethod.md. Signed-off-by: sunyue --- .../reference/apis/js-apis-inputmethod.md | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 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 20662cc900..613a9701ba 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -94,7 +94,7 @@ stopInput(callback: AsyncCallback<boolean>): void **示例:** ```js - InputMethodController.stopInput((error)=>{ + InputMethodController.stopInput((error)=>{ console.info('stopInput'); }); ``` @@ -117,8 +117,8 @@ stopInput(): Promise<boolean> ```js - var isSuccess = InputMethodController.stopInput(); - console.info('stopInput isSuccess = ' + isSuccess); + var isSuccess = InputMethodController.stopInput(); + console.info('stopInput isSuccess = ' + isSuccess); ``` ## InputMethodSetting8+ @@ -141,11 +141,11 @@ listInputMethod(callback: AsyncCallback<Array<InputMethodProperty>>) **示例:** ```js - InputMethodSetting.listInputMethod((properties)=>{ - for (var i = 0;i < properties.length; i++) { - var property = properties[i]; - console.info(property.packageName + "/" + property.methodId); - } + InputMethodSetting.listInputMethod((properties)=>{ + for (var i = 0;i < properties.length; i++) { + var property = properties[i]; + console.info(property.packageName + "/" + property.methodId); + } }); ``` @@ -165,11 +165,11 @@ listInputMethod(): Array<InputMethodProperty> **示例:** ```js - var properties = InputMethodSetting.listInputMethod(); - for (var i = 0;i < properties.length; i++) { - var property = properties[i]; - console.info(property.packageName + "/" + property.methodId); - } + var properties = InputMethodSetting.listInputMethod(); + for (var i = 0;i < properties.length; i++) { + var property = properties[i]; + console.info(property.packageName + "/" + property.methodId); + } ``` ### displayOptionalInputMethod @@ -189,9 +189,9 @@ displayOptionalInputMethod(callback: AsyncCallback<void>): void **示例:** ```js - InputMethodSetting.displayOptionalInputMethod(()=>{ - console.info('displayOptionalInputMethod is called'); - }); + InputMethodSetting.displayOptionalInputMethod(()=>{ + console.info('displayOptionalInputMethod is called'); + }); ``` ### displayOptionalInputMethod @@ -211,5 +211,5 @@ displayOptionalInputMethod(callback: AsyncCallback<void>): void **示例:** ```js - InputMethodSetting.displayOptionalInputMethod(); + InputMethodSetting.displayOptionalInputMethod(); ``` \ No newline at end of file -- GitLab