zoukankan      html  css  js  c++  java
  • webstrom添加模板代码

    添加模板代码

    • file > setting > Live Templates > 选择文件类型
    • 文件 > 设置 > 编辑器 > 实时模板 (设置的是在文件内用快捷键生成的代码)
    • 文件 > 设置 > 编辑器 > 文件和代码模板 (设置的是默认类型文件的代码)

    ;


    vue2 模板默认配置

    <template>
      <section>
      </section>
    </template>
    <script>
    export default {
      name: "",
      data() {
        return {};
      },
      computed: {},
      methods: {},
      props: {},
      // Vue 实例将会在实例化时调用 watch(),遍历 watch 对象的每一个 property。
      watch: {},
      beforeCreate() {},
      created() {},
      beforeMount() {},
      mounted() {},
      // 被 keep-alive 缓存的组件激活时调用。
      activated() {},
      // 被 keep-alive 缓存的组件停用时调用。
      deactivated() {},
      // 实例销毁之前调用。在这一步,实例仍然完全可用。
      beforeDestroy() {},
      destroyed() {},
      components: {},
      filters: {},
      directives: {},
      mixins: [],
      beforeRouteEnter(to, from, next) {
        window.document.body.style.backgroundColor = "";
        // window.document.title="title"
        next();
      },
      beforeRouteLeave(to, from, next) {
        window.document.body.style.backgroundColor = "";
        // window.document.title="title"
        next();
      }
    };
    </script>
    <style lang="css" scoped>
    </style>
    
    
  • 相关阅读:
    操作系统与进程.md
    解决粘包现象
    Python3网络爬虫开发实战
    Django学习目录
    前端学习目录
    MySQL数据库学习目录
    第一章 开发环境配置
    15.3 Scrapyd 对接 Docker
    13.4 Spider 的用法
    9.1 代理的设置
  • 原文地址:https://www.cnblogs.com/kgwei520blog/p/15665789.html
Copyright © 2011-2022 走看看