2017-07-30 P4.reactjs下modal跳转 react-route的modal/index跳转 react-route的modal/index跳转index与modal多次跳转,componentWillUpdate会被多次触发,点击事件也触发该事件。 但路由跳转只触发了componentWillReceiveProps 如图:如图: react-router4的各种关键都在this.props里面的match/location/history里面,需要多研究文档里面这三个的用法