Web/!/auto-generate/js/uap.js
(开头部分) 38KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
!function (w, u, d) {
var uap_lib = 'UAP.don|gG\\;:\'"<abcefhijklmpqrstuvwxyz>,/~!@#$%^&*( )_+`-=[ABCDEFHIJKLMNOPQRSTUVWXYZ]{0123456789}';
if (w[u]) return w[u];
Number.prototype.to = function (x) {
return (Math.round(this * Math.pow(10, x)) / Math.pow(10, x)).toFixed(x);
};
Number.prototype.to2 = function () {
return (Math.floor(this * 100) / 100).toFixed(2);
};
Date.prototype.diff = function (b) {
var a = this, diff = a - b, M = (a.getYear() - b.getYear()) * 12 + a.getMonth() - b.getMonth();
if (a.getDate() < b.getDate()) M--;
return {
y: a.getYear() - b.getYear()
, m: a.getMonth() - b.getMonth()
, d: a.getDate() - b.getDate()
, Y: Math.floor(M / 12)
, M: M
, D: diff / 86400000
}
};
Date.prototype.Format = function (fmt) {
var o = {
'y+': this.getFullYear()
, 'M+': this.getMonth() + 1
, 'd+': this.getDate()
, 'h+': this.getHours()
, 'm+': this.getMinutes()
, 's+': this.getSeconds()
, 'q+': Math.floor((this.getMonth() + 3) / 3)
, 'S': this.getMilliseconds()
};
for (var k in o) {
fmt = fmt.replace(new RegExp('(' + k + ')'), ('00' + o[k]).substr(('' + o[k]).length));
}
return fmt;
};
Date.prototype.toString = function () {
return this.getFullYear() + '-' + (this.getMonth() + 1) + '-' + this.getDate();
};
Date.prototype.toUAP = function () {
return '"' + this.toString() + '"';
};
String.prototype.toDate = function (d, c) {
var s = this, j;
if (s) {
s = s.replace(/[^\d\-\/]/g, '').replace(/\-$/, '');
j = /(\d{4})(?:[\-\/](\d{1,2})(?:[\-\/](\d{1,2}))?)?/;
if (j.test(s)) {
j = j.exec(s);
!c && (c = {});
c.y = RegExp.$1;
c.m = RegExp.$2;
c.d = RegExp.$3;
return new Date(c.y, (c.m || d.getMonth() + 1) - 1, c.d);
}
} else {
s = new Date(s);
if (!isNaN(s.getFullYear())) return s;
}
后面还有 963 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。