vue post请求设置为FormData传参

需要注意两点:

  第一:设置请求头 

     {headers: {'Content-Type': 'application/x-www-form-urlencoded'}}

  第二:所传参数采用字符串拼接,而不是键值对

原文地址:https://www.cnblogs.com/dreamstartplace/p/13275051.html