這個文件在一個用vue-cli生成的項目的組件文件夾下。template標簽沒有任何的標識符,比如id,我想請教vue是怎么知道要引用這個template標簽里的模板呢?Ver1.0.20180102.1import{mapState}from'vuex';import{Methods}from'../const/common';exportdefault{name:"start",computed:{...mapState(['moduleState'])},mounted(){setTimeout(function(){this.moduleState.start=false}.bind(this),2000);},beforeCreate(){Methods.getStoryList.call(this);}}@import"../style/css/start.css";
vue小白,請問這個.vue文件中,template標簽和導入的樣式是如何起作用的?
尚方寶劍之說
2019-05-23 16:57:04