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

📅  最后修改于: 2022-03-11 15:03:25.639000             🧑  作者: Mango

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