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
网友评论