美文网首页
Vue模板的编译过程

Vue模板的编译过程

作者: 52JackWang | 来源:发表于2020-10-16 14:09 被阅读0次

1. runtime-compiler

  • template → ast → render函数 → virtual DOM → 真实DOM
  • (template → ast → render函数)由vue-template-compiler实现。

2. runtime-only (性能更高,打包后的代码量更少)

  • render函数 → virtual DOM → 真实DOM

相关文章

网友评论

      本文标题:Vue模板的编译过程

      本文链接:https://www.haomeiwen.com/subject/iiuzpktx.html