$.ajax({
url: $loginForm.attr("action"),//后台访问路径
type: "POST",//get,post提交方式
data: {
username: $username.val()
},//传递的参数值
dataType: "json",//定义返回类型
cache: false,
success: function(message) {//message是返回的json 成功时返回
}
});
$.ajax({
url: $loginForm.attr("action"),//后台访问路径
type: "POST",//get,post提交方式
data: {
username: $username.val()
},//传递的参数值
dataType: "json",//定义返回类型
cache: false,
success: function(message) {//message是返回的json 成功时返回
}
});