话不多说,直接上代码。
let fs = new FormData();
fs.append('参数名称', 参数);
this.$http.post('你的接口',fs).then(response => {
// 成功回调,在这里处理数据
// console.log(response)
}, err => {
console.log(JSON.stringify(err))
})
话不多说,直接上代码。
let fs = new FormData();
fs.append('参数名称', 参数);
this.$http.post('你的接口',fs).then(response => {
// 成功回调,在这里处理数据
// console.log(response)
}, err => {
console.log(JSON.stringify(err))
})