BBSWeb/Scripts/ini.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function IniStruct() {
this.Name = new String();
this.Attribute = new Object();
this.setName = function (Name) {
Name = Name.toString();
var re = /^[^\s]+$/;
if (!re.test(Name)) {
return false;
}
else {
this.Name = Name;
return true;
}
}
this.setAttribute = function (AttributeName, AttributeValue) {
AttributeName = AttributeName.toString();
AttributeValue = AttributeValue.toString();
var reforName = /^\w+$/i;
var reforValue = /^[^\s]*$/;
if (!reforName.test(AttributeName) || !reforValue.test(AttributeValue)) {
return false;
}
else {
this.Attribute[AttributeName] = AttributeValue;
return true;
}
}
this.getAttribute = function (AttributeName) {
var reforName = /^\w+$/i;
if (!reforName.test(AttributeName)) {
return false;
}
else {
return this.Attribute[AttributeName];
}
}
this.toString = function () {
var Str = new String();
Str += "[" + this.Name + "]\n";
for (var p in this.Attribute) {
Str += p + "=" + this.Attribute[p] + "\n";
}
return Str;
}
this.getArr = function () {
var Arr = new Array();
Arr[0] = "[" + this.Name + "]";
var i = 1;
for (var p in this.Attribute) {
Arr[i++] = p + "=" + this.Attribute[p];
}
return Arr;
}
}
function Ini() {
this.FilePath = new String();
this.fso = new ActiveXObject("Scripting.FileSystemObject");
this.file = null;
this.IsOpen = false;
后面还有 208 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。