axios的post和request请求方法

### axios的get请求方法

axios.request({
  methods:"GET",
  url:"xxxxxxxxx",//这是请求的地址
}).then((response){
  console.log(response);
})


#### axios的post请求方法

axios.post("url",{
  body:"",
  postId:"xxxx",
}).then((resoponse)=>{
  console.log(response)
})
再宏伟的目标,拆分下来,也只是一串串的代码而已;一串串的代码,细分来看,也只是一个一个的字母而已!也许,我做不到一晚上完成大神一小时随便敲打的项目,但为这一目标,每天添砖加瓦,我想我应该是可以完成的!
原文地址:https://www.cnblogs.com/Annely/p/14778848.html