import Vue from ‘vue‘; import App from ‘./app.vue‘; import router from ‘./router‘; var app = new Vue({ el: ‘#app‘, router, render: h => h(App) });
import _ from ‘lodash‘; import Vue from ‘vue‘ import router from ‘vue-router‘ import App from ‘./app.vue‘ new Vue({ el: ‘#app‘, router, render: h => h(App) }) // 等同于 // new Vue({ // router, // render: (h) => h(app) // }).$mount(‘#app‘)
https://segmentfault.com/q/1010000006558033
原文地址:https://www.cnblogs.com/MR-cui/p/8430701.html
时间: 2024-10-10 12:19:36