answershuto / learnVue

:octocat:Vue.js 源码解析
https://github.com/answershuto/learnVue
12.66k stars 2.58k forks source link

src\core\vdom\create-element.js createElement函数 #47

Open cuntoulishifu opened 6 years ago

cuntoulishifu commented 6 years ago

您好 请问 src\core\vdom\create-element.js createElement函数里 if (Array.isArray(data) || isPrimitive(data)) { debugger normalizationType = children children = data data = undefined } 我不懂为什么要这么做,还希望能够指点一下,万分感谢!