法典:
$.ajax({
type: "POST",
url: "students/login",
data:{"data[Student][email]":_email,"data[Student][password]":_password},ss
beforeSend: function(){
$("#confirm").text("");
},
error: function (xhr, status) {
alert(status);
},
success: function(msg){
if(msg == " success"){
$("#confirm").text("Log in, please wait .......");
} else {
$("#confirm").text("No such user or password is incorrect!");
}
}
});
顺便提一下,我与面包店和酒吧打交道。