vue在vscode中的代码片段模板

"http-get请求": {
	"prefix": "httpget",
	"body": [
		"this.\\$http({",
		"url: this.\\$http. adornUrl(''),",
		"method: 'get',",
		"params: this.\\$http.adornParams({})",
		"}).then(((data))=>{",
		"})"
	],
	"description": "httpGet请求"
},
"http-post请求": {
	"prefix": "httppost",
	"body": [
		"this.\\$http({",
		"url: this.\\$http.adornUrl(''),",
		"method: 'post',",
		"data: this.\\$http.adornData(data,false)",
		"}).then(({data})=>{});"
	],
	"description": "httpPOST请求"
}

}

posted @ 2020-11-12 15:58  Valentino  阅读(280)  评论(0编辑  收藏  举报