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请求"
}
}

原文地址:https://www.cnblogs.com/wllhq/p/13964374.html