node.js
post将数据放在query.body中
"B": {
"prefix": "post", //自定义快捷名称
"body": [ //片段开始
"// post请求获取数据req.body",
"bodyParser = require('body-parser')",
"app.use(bodyParser.urlencoded({extended:false}))",
"app.use(bodyParser.json())",
"$0"
], //片段结束
"description": "post"
},
rouer 路由
"C": {
"prefix": "router", //自定义快捷名称
"body": [ //片段开始
"const router = require('express').Router()",
"",
"module.exports=router"
], //片段结束
"description": "router"
},
express服务器
"C": {
"prefix": "router", //自定义快捷名称
"body": [ //片段开始
"const router = require('express').Router()",
"",
"module.exports=router"
], //片段结束
"description": "router"
},
cors允许跨域
"E": {
"prefix": "cors", //自定义快捷名称
"body": [ //片段开始
"const cors = require('cors');",
"app.use(cors());",
"$0",
], //片段结束
"description": "cors"
}
脚手架vue2
"单文件组件Vue2": {
"prefix": "vue2", //自定义快捷名称
"body": [ //片段开始
"<template>",
"",
"</template>",
"<script>",
"export default {",
" $0",
"}",
"</script>",
"",
"<style scoped></style>",
], //片段结束
"description": "vue2"
},
脚手架vue3
"单文件组件Vue3": {
"prefix": "vue3tx", //自定义快捷名称
"body": [ //片段开始
"<script setup lang='ts'>",
" ",
"</script>",
"<template>",
" $0",
"</template>",
"",
"<style scoped lang='scss'>",
"",
"</style>",
], //片段结束
"description": "vue3"
}
Vue2
"Vue2": {
"prefix": "!2", //自定义快捷名称
"body": [ //片段开始
"<!DOCTYPE html>",
"<html lang='en'>",
"<head>",
" <meta charset='UTF-8'>",
" <meta name='viewport' content='width=device-width, initial-scale=1.0'>",
" <title>Document</title>",
" <script src='./js/vue.js'></script>",
"</head>",
"<body>",
" <div id='app'>",
" $0",
" </div>",
" <script>",
" new Vue({",
" el: '#app',",
" data() {",
" return {",
" $0",//$0光标初始位置
" }",
" }",
" })",
" </script>",
"</body>",
"</html>",
], //片段结束
"description": "nve"
},
Vue3
"Vue3": {
"prefix": "!3", //自定义快捷名称
"body": [ //片段开始
"<!DOCTYPE html>",
"<html lang='en'>",
"<head>",
" <meta charset='UTF-8'>",
" <meta name='viewport' content='width=device-width, initial-scale=1.0'>",
" <title>Document</title>",
" <script src='./js/vue.global.js'></script>",
"</head>",
"<body>",
" <div id='app'>",
" ",
" </div>",
" <script>",
" const app = Vue.createApp({",
" data(){",
" return {",
" $0", //$0光标初始位置
" }",
" }",
" })",
" app.mount('#app')",
" </script>",
"</body>",
"</html>",
], //片段结束
"description": "nve"
},