程序入口,没有它程序就没法启动了<br>有一段代码 new Vue().$mout("#app") 等价 <br>new Vue({<br> el:'#app'<br>})
import Vue from 'vue'
从依赖库(node_modules)里面把vue导入进来,因为下面马上要用到Vue对象
import App from './App.vue'<br>
正因为App.vue第11行代码有export,所有这里是导入App组件当当前文件的作用域里面
Vue.config.productionTip = false<br>
关闭警告
new Vue({<br> render: function (h) { return h(App) },<br>}).$mount('#app')<br>
等价于我们的<br>new Vue({<br> el:'#app'<br>})
思考#app从哪里来??