Parker's Next.js Lab
English
路由 Query 與上一頁測試
測試 URL query 參數的 push 與 replace 行為。Push 會新增歷史記錄,Replace 則會取代當前記錄。
當前 testData 值:
0
URL: ?testData=(無)
增加 query (Push)
增加 query (Replace)
測試方式:
1. 點擊 Push 按鈕數次,觀察 URL 變化
2. 按瀏覽器「上一頁」,應該能逐一返回
3. 重新測試 Replace 按鈕,按「上一頁」應該直接跳過中間記錄
路由 Query 與上一頁測試 | Parker's Next.js Lab