关于react-router-dom中的路由跳转push()、r
2019-03-19 本文已影响0人
北南桥
在react-router-dom路由中,路由跳转push()和replace()是不一样的,replace()跳转将会将当前历史路由清空,这样使用goBack()方法时,路由都会跳回首页。
在react-router-dom路由中,路由跳转push()和replace()是不一样的,replace()跳转将会将当前历史路由清空,这样使用goBack()方法时,路由都会跳回首页。