1. 添加头部headers headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, axios.post(url, {a: 1, b:2}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, }).then(response => response.data) .then(err => { console.log(err); }…