forked from PandaSun/HeRun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.js
32 lines (31 loc) · 1011 Bytes
/
default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <reference path="jquery-1.4.1-vsdoc.js" />
function denglu() {
var Name = $("#txtUserName").attr("value");
var Pwd = $("#txtUserPwd").attr("value");
var Code = $("#txtUserCode").attr("value");
$(document).ready(function () {
$.ajax({
type: "GET",
url: "DefaultAjax.aspx?Name=" + Name + "&Pwd=" + Pwd + "&Code=" + Code,
data: null,
success: function (result) {
if (result == "OK") {
alert("登录成功");
window.location = "main.aspx";
}
else if (result == "ERROR") {
alert("登录失败!");
}
else if (result == "ERRORCODE") {
alert("验证码错误!");
}
}
});
});
}
function qingchu() {
$("#txtUserName").attr("");
$("#txtUserPwd").attr("");
$("#txtUserCode").attr("") ;
}