http请求头部常用参数

post 请求头,参数为多个参数

        header: {
          'content-type': 'application/x-www-form-urlencoded' // 默认值
        },

请求头,post 请求参数为单json字符串

        header: {
          'content-type': 'application/json' //
        },

上传文件请求头,此处不演示

    header: {
      'content-type': 'multipart/form-data'  
    },
 
原文地址:https://www.cnblogs.com/zhumaoyu/p/9711145.html