标签: reactjs react-router
我有 <Route path="/\?Code" exact component={GameBoard}/>
<Route path="/\?Code" exact component={GameBoard}/>
在路线中,但不会使用网址:/?代码
我甚至尝试过<Route path="/?Code" exact component={GameBoard}/>
<Route path="/?Code" exact component={GameBoard}/>
无转义。有人可以帮忙吗?
答案 0 :(得分:0)
转义?对您无济于事,因为对URL中可使用的内容有一些限制(其中之一是我们可以在结构化它们时使用的符号)
?
例如,允许的符号包括所有字母,数字和一些特殊字符。- $ . +!*等 要深入了解,您可以参考this: 有关更多答案,请检查this
- $ . +!*