jsCoder

-----web前端攻城狮进阶中......

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年12月2日

摘要: 1.Ajax: componentDidMount 方法设置 Ajax 请求,等到请求成功,再用 this.setState 方法重新渲染 UI。/*demo1*/var Demo1Box=React.createClass({ getInitialState:function(){ ret... 阅读全文
posted @ 2015-12-02 11:54 jsCoder_洋洋 阅读(447) 评论(0) 推荐(0) 编辑