我如何重定向到另一页
问题描述:
我想知道当我尝试在本地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