1. 程式人生 > >ajax傳值與response.sendredirect()重定向,導致頁面不能重新整理問題!

ajax傳值與response.sendredirect()重定向,導致頁面不能重新整理問題!

1.前端ajax傳值後臺。

2.response.sendredirect重定向、request.getRequestDispach().forward()轉發頁面不會重新整理。

3.解決方法:

    前端用form提交,或window.location.href=url?u=x&p=y;傳值。