技术文献

动态路由和接收参数格式

2026-05-18

在src/app下输入house/[num]/page.tsx

 

page.tsx的代码

注意:动态路由的参数

{params}:{params:{num:string}}

 

 

访问