Backup/Discuz.Web/aspnet_client/system_web/1_1_4322/WebUIValidation.js
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var Page_ValidationVer = "125";
var Page_IsValid = true;
var Page_BlockSubmit = false;
function ValidatorUpdateDisplay(val) {
if(!val.isvalid)
{
document.getElementById(val.controltovalidate).style.borderColor='red';
}
else
{
document.getElementById(val.controltovalidate).style.borderColor='#C0C0C0';
}
if (typeof(val.display) == "string") {
if (val.display == "None") {
return;
}
if (val.display == "Dynamic") {
val.style.display = val.isvalid ? "none" : "inline";
return;
}
}
val.style.visibility = val.isvalid ? "hidden" : "visible";
}
function ValidatorUpdateIsValid() {
var i;
for (i = 0; i < Page_Validators.length; i++) {
if (!Page_Validators[i].isvalid) {
Page_IsValid = false;
return;
}
}
Page_IsValid = true;
}
function ValidatorHookupControlID(controlID, val) {
if (typeof(controlID) != "string") {
return;
}
var ctrl = document.all[controlID];
if (typeof(ctrl) != "undefined") {
ValidatorHookupControl(ctrl, val);
}
else {
val.isvalid = true;
val.enabled = false;
}
}
function ValidatorHookupControl(control, val) {
if (typeof(control.tagName) == "undefined" && typeof(control.length) == "number") {
var i;
for (i = 0; i < control.length; i++) {
var inner = control[i];
if (typeof(inner.value) == "string") {
ValidatorHookupControl(inner, val);
}
}
后面还有 359 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
