Vue single file loading process

The browser runs the index.html file by default, starts loading the Vue file, and executes the content in main.js.

 
After entering the main.js file, import the App.vue component, create a Vue instance, and render the content of the App component to the page through the template.

 When importing and executing App.vue, the FrameHead and FrameNav components will be introduced and registered to render to the page of App.vue.

 After the FrameHead and FrameNav components are introduced, all the content in these two files will be executed and exported to the App.vue file.

 

 
Note : The above is just reasoning that Vue's running process code needs to be in scaffolding to run normally, so we can't see any effect yet.

Original author: Wu Xiaotang

Creation time: 2023.4.15

Supongo que te gusta

Origin blog.csdn.net/xiaowude_boke/article/details/130165158
Recomendado
Clasificación