html ajax 后台管理,jQuery+ajax 进来后台系统
jQuery+ajax 进入后台系统$(document).ready(function(){$("#submitButton").live("click",function(){//进入后台系统var checkInfo=$("#checkInfo");var userName=$("#administrator").val();var password=$("#password").val()
jQuery+ajax 进入后台系统
$(document).ready(function(){
$("#submitButton").live("click",function(){//进入后台系统
var checkInfo=$("#checkInfo");
var userName=$("#administrator").val();
var password=$("#password").val();
var checkCode=$("#checkCode").val();
if(userName==""){
checkInfo.html("").append("用户名不能为空!");
return false;
}else if(password==""){
checkInfo.html("").append("密码不能为空!");
return false;
}else if(checkCode==""){
checkInfo.html("").append("验证码不能为空!");
return false;
}else{
var submitForm=$("#submitForm").serialize();
$.post("admin_enterSystem.action",submitForm,function(data){
var status=data.status;
if(status==1){
checkInfo.html("").append("验证码错误!");
}else if(status==2){
checkInfo.html("").append("用户名和密码错误 !");
}else if(status==4){
checkInfo.html("").append("管理员被锁定 !");
}else{
window.location.href="admin_index.jsp";
}
},"json");
}
});
});
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)