HLW/web/common/assets/js/prototype.js

(开头部分) 48KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var Prototype = {
    Version: "1.4.0",
    ScriptFragment: "(?:<script.*?>)((\n|\r|.)*?)(?:</script>)",
    emptyFunction: function () { },
    K: function (x) {
        return x;
    }
};
var Class = {
    create: function () {
        return function () {
            this.initialize.apply(this, arguments);
        };
    }
};
var Abstract = new Object();
Object.extend = function (_1, _2) {
    for (property in _2) {
        _1[property] = _2[property];
    }
    return _1;
};
Object.inspect = function (_3) {
    try {
        if (_3 == undefined) {
            return "undefined";
        }
        if (_3 == null) {
            return "null";
        }
        return _3.inspect ? _3.inspect() : _3.toString();
    } catch (e) {
        if (e instanceof RangeError) {
            return "...";
        }
        throw e;
    }
};
Function.prototype.bind = function () {
    var _4 = this,
	_5 = $A(arguments),
	_6 = _5.shift();
    return function () {
        return _4.apply(_6, _5.concat($A(arguments)));
    };
};
Function.prototype.bindAsEventListener = function (_7) {
    var _8 = this;
    return function (_9) {
        return _8.call(_7, _9 || window.event);
    };
};
Object.extend(Number.prototype, {
    toColorPart: function () {
        var _a = this.toString(16);
        if (this < 16) {
            return "0" + _a;
        }
        return _a;
    },
后面还有 1531 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。