Skip to content

Commit

Permalink
zh-cn: update doc for splitText() method (mdn#19747)
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <yin199909@aliyun.com>
  • Loading branch information
FrankFang and yin1999 authored Apr 25, 2024
1 parent 6cdac36 commit 8d0fc63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/text/splittext/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ newNode = textNode.splitText(offset)

### 返回值

返回一个新创建的 {{domxref("Text")}} 节点,该节点包含了 the text after the specified offset point.
返回一个新创建的 {{domxref("Text")}} 节点,该节点包含了指定偏移量之后的文本。

### 异常

Expand Down Expand Up @@ -78,5 +78,5 @@ p.insertBefore(u, bar);

## 参见

- The {{domxref("Text")}} interface it belongs to.
- The opposite method: {{domxref("Node.normalize")}}.
- 所属的接口:{{domxref("Text")}}
- 相反的方法:{{domxref("Node.normalize")}}

0 comments on commit 8d0fc63

Please sign in to comment.