会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
kylong
博客园
首页
新随笔
联系
订阅
管理
2018年8月19日
axios中get请求与post请求的简单函数封装
摘要: 今天写点什么呢,就写写如何将axios的post请求和get请求封装在一个函数中。 首先讲讲axios的get请求。 axios.get('/user') .then( (response) = { console.log(response); }) .catch( (error) = { cons
阅读全文
posted @ 2018-08-19 21:33 kylong
阅读(38747)
评论(1)
推荐(2)
编辑
公告