扫码关注官方订阅号
在Next.js中,我知道 next/router 和 next/navigation 都有一个 useRouter() 钩子,但返回的对象不同。为什么 Next.js 在两个路由包上有相同的钩子?
next/router
next/navigation
useRouter()
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部