http请求头部常用参数

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

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

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

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

 

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

    header: {
      'content-type': 'multipart/form-data'  
    },

 

 

 
posted @ 2018-09-27 08:13  一条道_走到黑  阅读(1165)  评论(0编辑  收藏  举报