vue.js - 编译模板时出错:标签没有匹配的结束标签
问题描述
我开始使用 Vue.js,但我尝试实现v-toolbar
,但它给了我以下错误:
Errors compiling template: tag <v-toolbar> has no matching end tag.
米码:
<template>
<div class="building">
<v-app>
<v-toolbar>
<v-toolbar-title>audi</v-toolbar-title>
<v-toolbar>
</v-app>
</div>
</template>
<style>
.building{
background:url("./assets/scss/images/HomeBackground.jpg");
width:100%;
height:100%;
position:absolute;
background-size:100% 100%;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
#navold {
padding: 30px;
}
#navold a {
font-weight: bold;
color: #2c3e50;
}
#navold a.router-link-exact-active {
color: #42b983;
}
</style>
我对此真的很陌生,但是我已经安装了 NPM 和 Vue 版本,我不知道是我遗漏了什么还是我做错了什么
解决方案
添加/
到<v-toolbar>
第 6 行
<v-toolbar>
<v-toolbar-title>audi</v-toolbar-title>
</v-toolbar> <----- here
推荐阅读
- arrays - 在循环中将数据行存储在数组中
- arrays - 在 2D numpy id 数组中搜索部分 id
- c - 显示数字而不是用户数据的 C 结构
- java - 是否可以从 DB 添加 logback.xml 配置值?
- c# - 如何提高 UWP 语音识别框架的准确率?
- python - logrotate 后日志开头的空值
- qt - 如何将字符串作为 QTextEdit 信号的参数传递
- c# - 无法在团队中创建多个私人频道
- android - 生成签名的 apk 时出错:com.google.gson.ExclusionStrategy 类型已定义多次
- python - 检索 JSON 查询结果后代码中断