WebContent/js/Data.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// Ajax或通信方法
function ajaxPost(url, dataMap, callback) {
var urlRndCode = urlAddRandomCode(url);
$.post(
urlRndCode,
dataMap,
callback
);
}
function ajaxGet(url, dataMap, callback) {
var urlRndCode = urlAddRandomCode(url);
$.get(
urlRndCode,
dataMap,
callback
);
}
function urlAddRandomCode(url) {
var rndCode = Math.random(new Date().getTime() / 1000);
rndCode = rndCode.toString().substring(2, 7);
if (url.indexOf('?') >= 0) {
url += "&_rnd=" + rndCode;
}
else {
url += "?_rnd=" + rndCode;
}
return url;
}
//学生登录
var StudentLogin = {
login: function (username, userpwd, callback) {
ajaxPost("/Ashx/StudentLogin.ashx", { username: username, userpwd: userpwd }, callback);
},
loginOut: function (callback) {
ajaxGet("/Ashx/StudentLoginOut.ashx", {}, callback);
},
loginValidation: function (callback) {
ajaxGet("/Ashx/StudentLoginValidation.ashx", {}, callback);
}
}
var StudentManager = {
studentReg: function (cardNum, pwd, name, code, callback) {
ajaxGet("/Ashx/StudentReg.ashx", { cardNum: cardNum, pwd: pwd, name: name, code: code }, callback);
},
studentChangeCateory: function (studentId, cateory, callback) {
ajaxGet("/Ashx/StudentChangeCateory.ashx", { studentId: studentId, cateory: cateory }, callback);
},
studentDetailUpdate: function (studentId, phone, phone2, qq, email, address, callback) {
ajaxGet("/Ashx/StudentDetailUpdate.ashx", { studentId: studentId, phone: phone, phone2: phone2, qq: qq, email: email, address: address }, callback);
}
}
var StudentCompain = {
insertCompain: function (studentId, Ctitle, Ctype, Ccontent, callback) {
ajaxGet("/Ashx/InsertStudentCompain.ashx", { studentId: studentId, Ctitle: Ctitle, Ctype: Ctype, Ccontent: Ccontent }, callback);
}
}
//我的信息,数据访问调用
var studentInfo = {
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
