路由:?<Route path="/datareport/:name" component={ReportIndex}></Route>;接收: `componentWillMount(){???document.title="名稱"+this.props.params.name;
}`訪問:http://localhost:3000/datareport/3為何出錯說沒有name屬性
react中的路由參數(shù)獲取問題
DIEA
2019-03-22 23:19:23