{
// 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 tp": {
"prefix": "tp",
"body": [
"type=\"text/html\"",
],
"description": "Log output to type"
},
"Print to sc": {
"prefix": "sc",
"body": [
"<script>",
"$1",
"</script>",
],
"description": "Log output to sc"
},
"html":{
"prefix": "html",
"body": ["<!DOCTYPE html>",
"<html lang=\"zh-CN\">",
"<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>$1</title>",
"</head>",
"<body>",
"</body>",
"<script>",
"$2",
"</script>",
"</html>",],
},
"vueall":{
"prefix": "vue",
"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>$1</title>",
" <script src=\"https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js\"></script>",
"</head>",
"<body>",
" <div id=\"app\">",
" </div>",
" <script>",
" let vm = new Vue({",
" el:'#app',",
" data:{",
" $2",
" }",
" })",
" </script>",
"</body>",
"</html>",],
},
}
html-snippet
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 要了解Google Snippet是做google SEO第一堂客,出现在大脑里的是Snippet是什么意思?Sn...
- sublime提供很多自定义拓展功能,代码片段功能snippet文件是其中之一。 我们在编写代码的时候,总会遇到一...
- 是否经常敲这样的代码 或是block记不清格式去复制粘贴? 用code snippet! 用起来也很简单,选中需要...
- lzlGetInit lzlGetCancelButton lzlGetGlobalQueue lzlGetNav...