📜  axios 设置请求标头 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:30.404000             🧑  作者: Mango

代码示例6
axios.post('http://localhost/M-Experience/resources/GETrends.php',
      {
        firstName: this.name
      },
      {
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
      });