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程序运行过程
博客对应课程的视频位置:
我的旨在学过的东西不再忘记(主要使用艾宾浩斯遗忘曲线算法及其它智能学习复习算法)的偏公益性质的完全免费的编程视频学习网站:
【读书编程笔记】fanrenyi.com;有各种前端、后端、算法、大数据、人工智能等课程。
版权申明:欢迎转载,但请注明出处
一些博文中有一些参考内容因时间久远找不到来源了没有注明,如果侵权请联系我删除。
AI交流资料群:753014672