1
鑑於這一陣營路由器配置:URL查詢字符串不匹配反應路由器的路由
<Router history={browserHistory}>
<Route path="/farm/:type?period=:period" component={Farm} />
<Route path="/pen/:penId" component={Pen} />
<Route path="/pen/:penId/cow/:cowId" component={Cow} />
<Route path="*" component={Farm} />
</Router>
爲什麼http://localhost:8080/farm/average?period=day
僅符合包羅萬象的路線,而不是第一個?