if(window.top!=window){
window.top.location=window.location;
}
//自动选中用户名
$("#loginAct").focus();
//键盘按下事件
$(window).keydown(function(event){
if(event.keyCode==13){
$("#loginBtn").click();
}
window.top.location=window.location;
}
//自动选中用户名
$("#loginAct").focus();
//键盘按下事件
$(window).keydown(function(event){
if(event.keyCode==13){
$("#loginBtn").click();
}
});
var referrer = "";//登录后返回页面 referrer = document.referrer;
if (jsonObject.errorMessage == "ok") { //登录成功,跳转至用户中心|从哪来回哪儿去 if ("" == referrer) { window.location.href = "index"; } else { window.location.href = referrer; } }