定位到页面顶端

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

...

</Router>

上一篇下一篇

猜你喜欢

热点阅读