IDEA 新建.vue格式的文件

1.Ctrl+Alt+S

2.

<template>
  <div>
      {{msg}}
  </div>
</template>

<style>
  body {
    background-color: #ff0000;
  }
</style>

<script>
  export default{
    data () {
      return {msg: '这个是Home模板页'}
    }
  }
</script>

3.

原文地址:https://www.cnblogs.com/liaojie970/p/7403992.html