diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md index 544524193b0f78e23774f84c7eaab31b57bb8e8f..6536bae25dcc5f38d5be2ed16659ff7cf316dc0c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -58,7 +58,7 @@ getInputMethodEngine(): InputMethodEngine 获取服务端实例。 > **说明:** -> 从API version 9开始废弃, 建议使用[getInputMethodAbility](#inputmethodenginegetinputmethodability9)替代 +> 从API version 9开始废弃, 建议使用[getInputMethodAbility](#getInputMethodAbility)替代 > > 从 API version 8开始支持。 @@ -143,7 +143,7 @@ getKeyboardDelegate(): KeyboardDelegate ## InputMethodEngine -下列API示例中都需使用[getInputMethodEngine](#inputmethodenginegetinputmethodenginedeprecated)回调获取到InputMethodEngine实例,再通过此实例调用对应方法。 +下列API示例中都需使用[getInputMethodEngine](#getInputMethodEngine)回调获取到InputMethodEngine实例,再通过此实例调用对应方法。 ### on('inputStart') @@ -340,9 +340,9 @@ off(type: 'keyboardShow'|'keyboardHide', callback?: () => void): void ## InputMethodAbility -下列API示例中都需使用[getInputMethodAbility](#inputmethodenginegetinputmethodability9)回调获取到InputMethodAbility实例,再通过此实例调用对应方法。 +下列API示例中都需使用[getInputMethodAbility](#getInputMethodAbility)回调获取到InputMethodAbility实例,再通过此实例调用对应方法。 -### on('inputStart')9+ +### on('inputStart')9+ on(type: 'inputStart', callback: (kbController: KeyboardController, inputClient: InputClient) => void): void @@ -789,7 +789,7 @@ inputMethodEngine.getKeyboardDelegate().off('textChange', (text) => { ## KeyboardController -下列API示例中都需使用[inputStart](#oninputstart9)回调获取到KeyboardController实例,再通过此实例调用对应方法。 +下列API示例中都需使用[inputStart](#inputStart9)回调获取到KeyboardController实例,再通过此实例调用对应方法。 ### hideKeyboard @@ -845,7 +845,7 @@ async function InputMethodEngine() { ## TextInputClient -下列API示例中都需使用[inputStart](#oninputstart)回调获取到TextInputClient实例,再通过此实例调用对应方法。 +下列API示例中都需使用[inputStart](#inputStart9)回调获取到TextInputClient实例,再通过此实例调用对应方法。 ### getForward(deprecated)