分析vue源码--->mount super6 2019-06-14 160 阅读1分钟 当调用$mount的时候会先对挂载的dom即el参数进行一次校验el应该是一个字符串或者是dom节点,且不能够是body/html然后调用mountConponent函数定义的updateComponent函数,且生成watcher来做响应式