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」頁面