提交 59b50746 编写于 作者: Z zhaolinglan

add doc

Signed-off-by: Nzhaolinglan <zhaolinglan@huawei.com>
上级 63e0774a
...@@ -1672,8 +1672,8 @@ getTextIndexAtCursor(callback: AsyncCallback&lt;number&gt;): void ...@@ -1672,8 +1672,8 @@ getTextIndexAtCursor(callback: AsyncCallback&lt;number&gt;): void
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | | -------- | --------------------------- | ---- | ------------------------------------------------------------ |
| callback | AsyncCallback&lt;[number](#index)&gt; | 是 | 回调函数。当文本索引获取成功,err为undefined,否则为错误对象。 | | callback | AsyncCallback&lt;number&gt; | 是 | 回调函数。当文本索引获取成功,err为undefined,否则为错误对象。 |
**错误码:** **错误码:**
...@@ -1708,8 +1708,8 @@ getTextIndexAtCursor(): Promise&lt;number&gt; ...@@ -1708,8 +1708,8 @@ getTextIndexAtCursor(): Promise&lt;number&gt;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------------------------------- | --------------------------------------- | | --------------------- | --------------------------------------- |
| Promise&lt;[number](#index)&gt; | Promise对象,返回光标所在处的文本索引。 | | Promise&lt;number&gt; | Promise对象,返回光标所在处的文本索引。 |
**错误码:** **错误码:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册