首页 > 解决方案 > 如何在模板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 并创建关闭,而不是花时间任何机构都有解决方案

我已经安装了很多片段,但都没有工作

标签: javascriptvue.js

解决方案


为 Visual Studio 代码安装插件Vetur并确保您的文件扩展名为 .vue


推荐阅读