小编use*_*244的帖子

React 路由器允许带有点(.)的路径

我试图添加正则表达式以允许如下所示的路径,但我无法使其工作。
例如:

  1. '/hello/search.apple.tree'
  2. '/hello/search.mango.tr'
  3. '/view/location.chicago.illinois'
  4. '/view/location.boston.ma'

reactjs react-router react-router-v4 react-router-dom

5
推荐指数
1
解决办法
3649
查看次数