微信扫一扫打赏支持

vue参考---VUE程序运行过程

vue参考---VUE程序运行过程

一、总结

一句话总结:

template->ast(abstract syntax tree)->render->virtual dom->UI

 

 

1、runtime-compiler 和 runtime-only 的运行原理(运行过程)?

runtime-compiler:template->ast(abstract syntax tree)->render->virtual dom->UI
runtime-only:性能更高、代码量更少:render->virtual dom->UI

 

 

2、npm install vue-loader vue-template-compiler --save-dev中的vue-template-compiler的作用是什么?

vue-template-compiler将vue中的template转换成render

 

3、Runtime-Compiler和Runtime-only的选择使用情况?

如果在之后的开发中,你依然使用template,就需要选择Runtime-Compiler
如果你之后的开发中,使用的是.vue文件夹开发,那么可以选择Runtime-only

 

 

 

二、VUE程序运行过程

博客对应课程的视频位置:

 

 

 

 

 
posted @ 2020-04-28 20:36  范仁义  阅读(367)  评论(0编辑  收藏  举报