vscode常用代码片段--小程序篇

	"lifetimes":{
		"prefix":"lifetimes",
		"body": [
			"lifetimes:{",
			"  created() {",
			"    $1",
			"  },",
			"  attached() {",
			"    $2",
			"  },",
			"  moved() {",
			"  },",
			"  detached() {",
			"  }",
			"},",
		],
		"description": "小程序组件生命周期"
	},
	"print": {
		"prefix": "print",
		"body": [
			"this.printLog('$1');",
		],
		"description": "小程序打印"
	},
	"console": {
		"prefix": "log",
		"body": [
			"console.log('$1');",
			"$2"
		],
		"description": "js 打印日志"
	},
	"import": {
        "prefix": "import 导入资源",
        "body": "import {$0} from '';",
        "description": "导入"
    },
发布了68 篇原创文章 · 获赞 12 · 访问量 5万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 像素格子 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览