这里主要要讲述五个文件-index.html、main.js、App.vue、index.js(router目录下)、HelloWorld.vue
本地项目启动后输入http://localhost:8080/#/,
1.首先加载index.html文件
2.然后main.js会渲染index.html中的id为app的div,并引入组件app和路由router
3.app.vue中的<router-view/>会加载index.js中配置的路由页面
4.index.js默认配置的是HelloWorld组件,所以默认加载的是HelloWorld组件