摘要: 组件的数据来源,通常是通过 Ajax 请求从服务器获取,可以使用 componentDidMount 方法设置 Ajax 请求,等到请求成功,再用 this.setState 方法重新渲染 UI 然后浏览器报了这样一个错 this.IsMounted() is not a function 对比了一 阅读全文
posted @ 2017-02-16 15:54 没事看看电影 阅读(583) 评论(0) 推荐(0) 编辑