From 813fdbc7c358d000f8e488163e069b764264d6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=23=E8=AF=AD=E6=8B=A9=E8=AF=B7=E5=8F=AB=E6=88=91?= <327932801@qq.com> Date: Tue, 18 Jul 2023 11:12:18 +0800 Subject: [PATCH] Update create-element.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 第125行:normalize-children 名字写错了。 --- docs/v2/data-driven/create-element.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v2/data-driven/create-element.md b/docs/v2/data-driven/create-element.md index 4fa6c30..1876318 100644 --- a/docs/v2/data-driven/create-element.md +++ b/docs/v2/data-driven/create-element.md @@ -122,7 +122,7 @@ export function _createElement ( 由于 Virtual DOM 实际上是一个树状结构,每一个 VNode 可能会有若干个子节点,这些子节点应该也是 VNode 的类型。`_createElement` 接收的第 4 个参数 children 是任意类型的,因此我们需要把它们规范成 VNode 类型。 -这里根据 `normalizationType` 的不同,调用了 `normalizeChildren(children)` 和 `simpleNormalizeChildren(children)` 方法,它们的定义都在 `src/core/vdom/helpers/normalzie-children.js` 中: +这里根据 `normalizationType` 的不同,调用了 `normalizeChildren(children)` 和 `simpleNormalizeChildren(children)` 方法,它们的定义都在 `src/core/vdom/helpers/normalize-children.js` 中: ```js // The template compiler attempts to minimize the need for normalization by