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 2669729d3fb395d2e32f166ce0833d7afd36799f..9cbef5a80f65386786cbe3ced165a5baca07c10f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -2243,7 +2243,7 @@ on(type: 'getTextIndexAtCursor', callback: () => number): void; ```js try { inputMethodController.on('getTextIndexAtCursor', () => { - console.log(`Succeeded in subscribing getTextIndexAtCursor, length: ${length}`); + console.log(`Succeeded in subscribing getTextIndexAtCursor.`); let index:number = 0; retutn index; }); @@ -2272,7 +2272,7 @@ off(type: 'getTextIndexAtCursor', callback?: () => number): void; ```js try { inputMethodController.off('getTextIndexAtCursor', () => { - console.log(`Succeeded in unsubscribing getTextIndexAtCursor, length: ${length}`); + console.log(`Succeeded in unsubscribing getTextIndexAtCursor.`); let index:number = 0; retutn index; });