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 e84c986f251d9b54a7b0bef17c7c6c1402fdf4d6..613a9701bad2595f022673cca38e12665e575db1 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
@@ -47,9 +47,10 @@ getInputMethodController(): InputMethodController
| [InputMethodController](#InputMethodController) | 回调返回当前客户端实例。 |
**示例:**
- ```js
+
+```js
var InputMethodController = inputMethod.getInputMethodController();
- ```
+```
## inputMethod.getInputMethodSetting8+
@@ -67,9 +68,10 @@ getInputMethodSetting(): InputMethodSetting
**示例:**
- ```js
+
+```js
var InputMethodSetting = inputMethod.getInputMethodSetting();
- ```
+```
## InputMethodController
@@ -92,7 +94,7 @@ stopInput(callback: AsyncCallback<boolean>): void
**示例:**
```js
- InputMethodController.stopInput((error)=>{
+ InputMethodController.stopInput((error)=>{
console.info('stopInput');
});
```
@@ -115,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+
@@ -137,14 +139,15 @@ listInputMethod(callback: AsyncCallback<Array<InputMethodProperty>>)
| callback | Array<[InputMethodProperty](#InputMethodProperty)> | 是 | 返回已安装输入法列表。 |
**示例:**
- ```js
- InputMethodSetting.listInputMethod((properties)=>{
- for (var i = 0;i < properties.length; i++) {
- var property = properties[i];
- console.info(property.packageName + "/" + property.methodId);
- }
+
+```js
+ InputMethodSetting.listInputMethod((properties)=>{
+ for (var i = 0;i < properties.length; i++) {
+ var property = properties[i];
+ console.info(property.packageName + "/" + property.methodId);
+ }
});
- ```
+```
### listInputMethod
@@ -160,13 +163,14 @@ listInputMethod(): Array<InputMethodProperty>
| Promise> | 返回已安装输入法列表。 |
**示例:**
- ```js
- var properties = InputMethodSetting.listInputMethod();
- for (var i = 0;i < properties.length; i++) {
- var property = properties[i];
- console.info(property.packageName + "/" + property.methodId);
- }
- ```
+
+```js
+ var properties = InputMethodSetting.listInputMethod();
+ for (var i = 0;i < properties.length; i++) {
+ var property = properties[i];
+ console.info(property.packageName + "/" + property.methodId);
+ }
+```
### displayOptionalInputMethod
@@ -183,11 +187,12 @@ displayOptionalInputMethod(callback: AsyncCallback<void>): void
| callback | AsyncCallback<void> | 是 | 回调函数。 |
**示例:**
- ```js
- InputMethodSetting.displayOptionalInputMethod(()=>{
- console.info('displayOptionalInputMethod is called');
- });
- ```
+
+```js
+ InputMethodSetting.displayOptionalInputMethod(()=>{
+ console.info('displayOptionalInputMethod is called');
+ });
+```
### displayOptionalInputMethod
@@ -204,6 +209,7 @@ displayOptionalInputMethod(callback: AsyncCallback<void>): void
| Promise<void> | 回调函数。 |
**示例:**
- ```js
- InputMethodSetting.displayOptionalInputMethod();
- ```
\ No newline at end of file
+
+```js
+ InputMethodSetting.displayOptionalInputMethod();
+```
\ No newline at end of file