The problem of $.ajax between axios and jquery

I submit the form data through the $.ajax method of jquey. The backend can receive it normally, but not with axios.post.
is added through new FormData append. Why can"t axiosy? the channel is axios.post submission formData requires special configuration

$.ajax ({

)
      type:"post",
      url:"http:// ",
      dataType: "json",
      cache: false,
      data: formData,
      processData: false,
      contentType: false,
      success:function(e){
          console.log(e)
      },
      error: function(e) {
        console.log(e)
      }

[

]
Provisional headers are shown
Accept: application/json, text/plain, /
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Origin: http://localhost:3000
Referer: http://localhost:3000/account/changeBankCard
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10 / 13 / 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Mar.24,2021

your $.ajax should use multipart/form-data format
axios definitely cannot be submitted in application/x-www-form-urlencoded format
you can set Content-Type of header of axios to multipart/form-data
headers: {'Content-Type':' multipart/form-data'} <

Menu