This commit is contained in:
2022-06-19 17:47:11 +08:00
parent ecae5af30f
commit 24730ed38a
12 changed files with 10117 additions and 869 deletions
+13 -1
View File
@@ -11,4 +11,16 @@
路由传参
params传参,需要声明接收
serach传参,无需声明接收
state
state
路由模式
replace
push 默认模式
编程式路由
this.props.history.push()
this.props.history.replace()
witchRouter
HashRouter / BrowserRouter
使用哈希路由,路由传值,刷新时值会丢失