代码拉取完成,页面将自动刷新
{
// 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"
// }
"Print to vue": {
"prefix": "vuec",
"body": [
"<template>",
" <div>",
" 御剑乘风来,除魔天地间!$1",
" </div>",
"</template>",
"<script>",
"export default{",
" name:'',",
"\t\tdata () {",
"\t\t\t\treturn {",
"\t\t\t\t\t\t",
"\t\t\t\t}",
"\t\t},",
"\t\tcreated () {",
"\t\t},",
"\t\tcomputed:{",
"\t\t},",
"\t\tmethods:{",
"\t\t}",
"}",
"</script>",
"<style lang='less' scoped>",
"\t\t",
"</style>",
"",
],
"description": "create a vue template"
},
"Print to v": {
"prefix": "vue",
"body": [
"<!DOCTYPE html>",
"<html lang='en'>",
"<head>",
"\t<meta charset='UTF-8'>",
"\t<meta name='viewport' content='width=device-width, initial-scale=1.0'>",
"\t<title>Document</title>",
"\t<script type='text/javascript' src='js/vue.js'></script>",
"</head>",
"<body>",
"\t<div id='app'>",
"\t</div>",
"\t<script type='text/javascript'>",
"\t\tvar vm = new Vue({",
"\t\t\tel: '#app',",
"\t\t\tdata: {",
"\t\t\t},",
"\t\t\tmethods: {",
"\t\t\t}",
"\t\t});",
"\t</script>",
"</body>",
"</html>"
],
"description": "create a vue template"
},
"Print to express": {
"prefix": "express",
"body": [
"const express=require('express')",
"const app=express()",
"app.get('/',(req,res)=>{",
"\tres.send('1111')",
"})",
"app.listen(2000,()=>{",
"\tconsole.log('http://127.0.0.1:2000');",
"})"
]
},
"Print to vuex": {
"prefix": "vuex",
"body": [
"export default {",
"\tnamespaced:true,",
"\tstate: {",
" \t\t",
"\t},",
"\tmutations: {",
"\t\t ",
"\t},",
"\tactions: {",
"\t\t ",
"\t},",
"}"
]
},
"Print to ajax": {
"prefix": "$ajax",
"body": [
"$.ajax({",
"\turl: '',",
"\ttype:'get',",
"\tdata:{},",
"\tsuccess:function(res){",
"\t\t\t",
"\t},",
"})"
]
},
"Print to rcl": {
"prefix": "rcl",
"body": [
"$2",
"class Com extends React.Component {",
"\trender() {",
"\t\treturn <div>",
"\t\t\t御剑乘风来,除魔天地间!$1",
"\t\t</div>",
"\t}",
"}"
],
"description": "类组件"
},
"Print to rrcl": {
"prefix": "rrcl",
"body": [
"import React from 'react'",
"$2",
"class Com extends React.Component {",
"\trender() {",
"\t\treturn <div>",
"\t\t\t御剑乘风来,除魔天地间!$1",
"\t\t</div>",
"\t}",
"}",
"export default Com"
],
"description": "类组件"
},
"Print to rfun": {
"prefix": "rfun",
"body": [
"$2",
"const Func = () => {",
"\treturn <div>",
"\t\t御剑乘风来,除魔天地间!$1",
"</div>",
"};",
],
"description": "函数式组件"
},
"Print to rrfun": {
"prefix": "rrfun",
"body": [
"import React from 'react'",
"$2",
"const Func = () => {",
"\treturn <div>",
"\t\t御剑乘风来,除魔天地间!$1",
"</div>",
"};",
"export default Func"
],
"description": "函数式组件"
},
"Print to vuex": {
"prefix": "vuex",
"body": [
"export default {",
"\tstate () {",
"\t\treturn {",
// 文章分类的列表数据
"\t\t\t",
"\t\t}",
"\t},",
"\tmutations: {",
// 设置分类列表数据
"\t\t\t",
"\t},",
"\tactions: {",
"\t},",
"\tgetters: {},",
// 开启命名空间
"\tnamespaced: true",
"}",
],
"description": "函数式组件"
},
"Print to clog": {
"prefix": "clog",
"body": [
"console.log()",
],
"description": "输入打印"
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。