我有以下联合材料:
$( form ).live( submit , function (event) {
// Stop the form from doing a native postback
event.preventDefault();
$.ajax({
type: POST ,
timeout: 5000,
url: $(this).attr( action ),
data: $( form ).serialize(),
success: function (responseHtml) {
$.getJSON($(this).attr( action ), function (data) {
console.log(data);
});
},
error: function (jqXHR, textStatus, errorThrown) {
alert( server error );
}
});
});
谁应当将json从下列微粒方法中记录下来(,意思是一 log倒,而不是一ja误!):
[HttpPost]
public JsonResult Login(User user, string returnUrl)
{
// Validate the email and password
if (users.Login(user.UserName, user.Password, Request.UserHostAddress))
{
FormsAuthentication.SetAuthCookie(user.UserName, true);
// build redirectUrl ...
//var redirUrl = ...
return Json(new { uservalidated = true, url = false });
}
else
{
return Json (new { uservalidated = false, url = false });
}
}
如果我不同意联合材料,那么我会看到结果的罚款,但出于某种原因,联合材料会发现: