目测这是multipart吧,可以这么写:let formData = new FormData(); formData.append('test.A', 'test1'); formData.append('test.B', 'test2'); axios({ method: 'post', url: 'http://example.com/testpath', data: formData, headers: { 'Content-Type': 'multipart/form-data' } }).then(function (res) { console.log(res) }) 希望能帮助到你。
目测这是multipart吧,可以这么写:
希望能帮助到你。