52,797
社区成员
发帖
与我相关
我的任务
分享
$("#btnLogin").click(function(){
$.ajax({
url : "/test/user.do?method=userLogin",
type : "post",
dataType: "text",
data : {
u_loginid : $("#u_loginid").val(),
u_password : $("#u_password").val(),
code : $("#code").val()
},success : function(data) {
var result = jQuery.parseJSON(data);
if (result.success == true) {
document.location.href = "/test/demo/main.jsp";
} else { $("#imgRead").attr("src","/yx/VerificationCode?time=" + new Date().getTime());
}
}
});
});