KingNET.WebUI/Scripts/login.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
function GetValidateCodes() {
$("#imgValidateCode").attr("src", "/Common/ValidateCodeHandler.ashx?r=" + Math.random());
}
function show() {
c = false;
$("#trValidcode").show();
GetValidateCodes();
$("#txtcheckCode").unbind('change').bind("change", function () {
var self = $(this);
self.css("borderColor", "#C5C5C5");
G.util.jsonpost({ mod: "AdmUserLogin", act: "validCode", checkCode: $(this).val() }, function (res) {
if (res.errno === 0) {
if (res.data != true) {
self.css("borderColor", "red");
return;
}
c = true;
} else {
alert(res.errmsg);
}
});
});
}
function submitForm(entity) {
G.util.jsonpost({ mod: "AdmUserLogin", act: "login", param: entity }, function (res) {
if (res.errno === 0) {
if (res.data) {
window.location.href = "/main.html";
} else {
alert(res.errmsg);
}
} else {
if (res.errno > 2) {
show();
}
alert(res.errmsg);
$("#txtUserPwd,#txtcheckCode").val("");
}
});
}
$("#targetForm").registerFileds();
$("#targetForm").submit(function () {
var entity = $(this).formToJSON(true);
var s = $("#trValidcode").is(":visible");
if (entity) {
if (s) {
if (!c) {
alert("验证码输入错误");
return false;
}
}
submitForm(entity);
}
return false;
});
var s = $("#trValidcode").is(":visible"), c = true;
if (!s) {
G.util.jsonpost({ mod: "AdmUserLogin", act: "getLoginTimes" }, function (res) {
if (res.errno === 0) {
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。