this.props.match中包含的是url信息其中this
路由为:url
{ path: "/FriendDetail/ :id/ :index", name: "FriendDetail", component: FriendDetail }
let id = this.props.match.params.id;
使用方法:spa
this.props.history.push('/download'); // 跳转到“/download”页面