redux中发送异步请求获取数据

mac 终端新建一个文件命令 touch 文件名.后缀 eg:touch list.jsonios axios.get('/api/todolist') .then((res) => { //成功 console.log(res) }) .catch(() => { //失败 }
相关文章
相关标签/搜索