日期:2014-05-17 浏览次数:20427 次
function btnOk_click(){
var strUsername = $("#txtUsername").val();
var strPwd = $("#txtPwd").val();
if(strUsername==""){
alert("请输入用户名!");
$("#txtUsername").focus();
return false
}
if(strPwd==""){
alert("请输入密码!");
$("#txtPwd").focus();
return false
}
$.ajax({
type: "get",
// url: "../../../ajax/adminlogin.aspx?paramName=" + escape(strUsername) + "¶mPwd=" + strPwd,
url: "../ajax/adminlogin.aspx?paramName=" + escape(strUsername) + "¶mPwd=" + strPwd,
cache: false,
success: function(reg){
alert("success2");
},
error: function(){
alert("参数出错,请与管理员联系!");
}
});
}