Vue Cli我不太理解导入的部分。谁能告诉我Vue和Vue (从‘vue’导入vue)和App App.vue(从App.vue导入应用程序)之间的区别?
从“Vue”导入应用程序“./App.vue”导入vue
新Vue({ el:'#app',呈现:h => h(App) })
发布于 2020-08-21 09:51:37
// Import vue in itself
import Vue from 'vue'
// Import the App component, you can see it as the root of your app that will contain all of your other components
import App from './App.vue'
// Create a new javascript instance of vue
new Vue({
render: h => h(App), // This new instance will render the app component
}).$mount('#app') // Actually mount the whole application targeting the #app id in the DOMhttps://stackoverflow.com/questions/63520391
复制相似问题