提交 37524042 编写于 作者: C cy7717

修改注释

Signed-off-by: Ncy7717 <chenyu301@huawei.com>
上级 2b737903
......@@ -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;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册