定位到页面顶端
2018-07-17 本文已影响13人
奋斗的小小小兔子
-
onUpdate
used to scroll to top of the page
<Router onUpdate={() => window.scrollTo(0,0)} history={hashHistory}>
...
</Router>
onUpdate
used to scroll to top of the page<Router onUpdate={() => window.scrollTo(0,0)} history={hashHistory}>
...
</Router>