我如何重定向到另一页 [英] how i can redirect to an other page
本文介绍了我如何重定向到另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道当我尝试在本地rrdirect页面时,我在视觉工作室工作不正常,我无法像
那样进行重定向
Hi i want to know that i am wrking in the visual studio when i am trying to rrdirect the page locally i am not able to redirect like
success: function (response) {
var Result = response.d
if (Result == true) {
var url = 'http://www.facebook.com';
$(location).attr('href', url);
}
alert(Result);
},
error: function (result) {
var Result = result.d;
if (Result == false)
{ alert(Result); }
}
})
但是我试图将其重定向到类似google的页面,或将其重定向到Facebook的问题所在的地方
But i am trying to redirect to the page like google ,or facebook its been redirecting where is the problem
推荐答案
(位置).attr(' href',url); } 警报(结果); }, 错误:功能(结果){ var Result = result.d; 如果(结果== false ) {alert(Result); } } })
(location).attr('href', url); } alert(Result); }, error: function (result) { var Result = result.d; if (Result == false) { alert(Result); } } })
但是我正在尝试重定向到类似google的页面,或者facebook一直在重定向问题所在
But i am trying to redirect to the page like google ,or facebook its been redirecting where is the problem
将确切的本地url分配给url变量,您将重定向到本地url
assign exact local url to url variable, u will redirect to local url
这篇关于我如何重定向到另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文