javascript - 如何在模板vue文件中创建html otomatic
问题描述
我想在 vue 中的模板内创建 html,但我必须创建手册,我使用 vscode 编辑器
<template>
<div class="hello">
<h1>hellow word</h1>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String
}
}
</script>
在上面的代码中,即使只创建 h1 我也必须关闭打开标签 html 并创建关闭,而不是花时间任何机构都有解决方案
我已经安装了很多片段,但都没有工作
解决方案
为 Visual Studio 代码安装插件Vetur并确保您的文件扩展名为 .vue
推荐阅读
- azure - 使用 Azure 时轻松备份和还原 VM
- c# - 响应大小未知时通过 C# 调用 Node.js 服务
- java - 为什么 JAVA HashSet 在内部使用 HashMap?不浪费内存吗?
- ruby-on-rails - 错误响应 [9],找不到命令:rails s
- reactjs - Redux Forms 有时会以注册/注销无限循环结束
- sql - SQL 插入语句以将 SAS 日期传递给 MS Access DB
- c++ - 在线程中运行 lambda 时如何减少副本?
- ruby - 如何在静态数组中添加创建的对象?
- linux - Git结帐分支不起作用
- pdf - PDF-文本块可以包含 2 个或更多单词吗?