开发者

Javascript Redirect - Wrong redirect

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜