useHistory 如果您使用React > 16.8.0 和功能组件,则React Router >5.1.0 中有一个新钩子。 ... 我尝试以这种方式使用方法1 withRouter(( { history } ...
確定! 回上一頁