vue基础结构一键生成的代码模块添加

把下面的代码复制到html.json文件中。打开html,json的文件步骤,点击文件,然后选首选项,然后选用户代码片段,然后输入html,选择html.json。

把下面的代码粘贴过去。
{
    "Vue": {
        "prefix": "vue",
        "body": [
            "DOCTYPE html>",
            "<html lang=\"en\">",
            "\t<head>",
            "\t\t<title>$1title>",
            "\t\t<meta charset=\"UTF-8\">",
            "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">",
            "\t\t<script src=\"./js/vue2.js\">script>",
            "\thead>",
                        "\t<body>",
                        "\t\t<div id=\"app\">div>",
                        "\t\t<script>",
                        "\t\t\tvar vm = new Vue({",
                        "\t\t\t\tel: '#app',",
                        "\t\t\t\tdata: {",
                        "",
                        "\t\t\t\t}",
                        "\t\t\t})",
                        "\t\tscript>",
                        "\tbody>",
            "html>"
        ],
        "description": "vue - Defines a template for a vue & html5 document"
    }
}

 

转载于:https://www.cnblogs.com/Hajar/p/10930694.html

你可能感兴趣的:(vue基础结构一键生成的代码模块添加)