用vue-cli工具生成的main.js中import Vue from 'vue'import App from './App'import router from './router'Vue.config.productionTip = false/* eslint-disable no-new */new Vue({ el: '#app', router, template: '<App/>', components: { App }})【template: '<App/>'】这句是什么意思?是指使用app.vue模板吗?但在vue没有看到这样的用法哦!里面只有:1 template:'#xxx' 根据id获取2 template:'<xx>.....<xx>' 直接使用请问有没有相关的文档解释呢?谢谢
添加回答
举报
0/150
提交
取消