vue入口文件

一、index.html

二、main.js

  入口文件,加载公共组件

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

  el: 挂载目标

  router: 路由

  render: 组件名

三、App.vue

  render引入App.vue

调用顺序 1.index.html  2.main.js  3.App.vue 

猜你喜欢

转载自www.cnblogs.com/curricle-/p/12116162.html