动态路由 this.props.location.pathname(获取路由路径中的相关参数) window.location.pathname(获取路由路径中的相关参数) 转载于:https://www.cnblogs.com/dianzan/p/11037717.html