I use the javascript redirect fun开发者_如何学JAVAction, to redirect whenever a form has completed the processing.
It use it like this:
redirect("?i=login"); //On the page. http://www.domain.com/folder/?i=index
Although, it redirects to: http://www.domain.com/folder/www.domain.com/folder/?i=login
Why is that?
Use window.location.assign('?i=login');
精彩评论