Web/Js/commonEnum.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// 枚举条目
function hxEnumItem(name, value, title) {
this.Name = name;
this.Value = value;
this.Title = title;
}
// 枚举
function hxEnum(items) {
this.Items = items;
this.getItemByVal = function (value) {
var i;
for (i = 0; i < this.Items.length; i++) {
if (this.Items[i].Value == value)
return this.Items[i];
}
}
this.getItemByName = function (name) {
var i;
for (i = 0; i < this.Items.length; i++) {
if (this.Items[i].Name == name)
return this.Items[i];
}
}
this.getItemByTitle = function (title) {
var i;
for (i = 0; i < this.Items.length; i++) {
if (this.Items[i].Title == title)
return this.Items[i];
}
}
}
// 报名来源
hxEnum.HxSignUpSource = new hxEnum([
new hxEnumItem("Dir", 1, "直接报名"),
new hxEnumItem("Web", 2, "网络报名")
]);
// 性别
hxEnum.HxSex = new hxEnum([
new hxEnumItem("女", 0, "女"),
new hxEnumItem("男", 1, "男")
]);
// 考生成绩状态
hxEnum.HxScoreState = new hxEnum([
new hxEnumItem("Unknown", 0, "未知"),
new hxEnumItem("None", 1, "未评分"),
new hxEnumItem("Passed", 2, "通过"),
new hxEnumItem("Fail", 3, "不及格"),
new hxEnumItem("Absent", 4, "缺考"),
new hxEnumItem("None", 5, "作弊")
]);
// 复训生要求
hxEnum.HxRequirementTypes = new hxEnum([
new hxEnumItem("Unknown", 0, "未知"),
new hxEnumItem("Unallow", 1, "不允许"),
new hxEnumItem("Allow", 2, "允许"),
new hxEnumItem("Need", 3, "必须")
]);
// 预警时间类型
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
