{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"vue-template": {
// 输入什么内容, 触发代码段 tpl + tab 触发代码段
"prefix": "tpl",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
" <head>",
" <meta charset=\"UTF-8\" />",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />",
" <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\" />",
" <title>Document</title>",
" </head>",
" <body>",
" <div id=\"app\">",
" {{ msg }}",
" </div>",
"",
" <script src=\"./vue.js\"></script>",
" <script>",
" const vm = new Vue({",
" el: '#app',",
" data: {",
" msg: 'hello vue$1'",
" }",
" })",
" </script>",
" </body>",
"</html>"
],
"description": "vue 模板"
}
}
html代码段
最新推荐文章于 2023-09-05 23:01:45 发布