火狐下一点问题

$(".li_logout_a").click(function (e) {
var hrefs = location.href;
e.preventDefault();
$("#lnk_username span").text("");
$("#li_login,#li_regist").show().prev().show();
$("#li_logout").hide().prev().hide();
//$.post("/ashx/Adminlogo.ashx", { act: "logout" }, function (data) {
// alert(data);
//});
$.ajax({
url: '/ashx/Adminlogo.ashx',
type: 'post',
data: { act: "logout" },
success: function (d) {
if (d=="1") {
location.href = "/";
}
}
});
//alert("b");
//location.href = hrefs;//加上这个,火狐不能执行$.ajax部分,哪部分代码引起  未发现
//if (hrefs.indexOf("MemberZone") > 0) {
// location.href = "/";
//}
})

原文地址:https://www.cnblogs.com/juexin/p/4026013.html