开发者

Javascript Redirect - Wrong redirect

开发者 https://www.devze.com 2023-03-28 04:13 出处:网络
I use the javascript redirect fun开发者_如何学JAVAction, to redirect whenever a form has completed the processing.

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');

0

精彩评论

暂无评论...
验证码 换一张
取 消