React开发实时聊天招聘工具 -第五章 需求分析

Axios的使用

axios.get('/data')

         .then(res=>{

         if(res.status==200)

          this.setState(data:res.data)     

})

猜你喜欢

转载自www.cnblogs.com/eret9616/p/9284299.html