Skip to content

Commit

Permalink
docs: text typo (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingpengsha authored Mar 17, 2022
1 parent 8afeed3 commit cf2388f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/serialization.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $('body').replaceWith(snapshot);

这个序列化的结果中有两点需要注意:

1. 我们遍历 DOM 树时是以 Node 为单位,因此除了场景的元素类型节点以为,还包括 Text Node、Comment Node 等所有 Node 的记录。
1. 我们遍历 DOM 树时是以 Node 为单位,因此除了场景的元素类型节点以外,还包括 Text Node、Comment Node 等所有 Node 的记录。
2. 我们给每一个 Node 都添加了唯一标识 `id`,这是为之后的增量快照做准备。

想象一下如果我们在同页面中记录一次点击按钮的操作并回放,我们可以用以下格式记录该操作(也就是我们所说的一次增量快照):
Expand Down

0 comments on commit cf2388f

Please sign in to comment.