content/plugins/jqgrid/jqgrid.js

(开头部分) 518KB

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

(function (b) {
    b.jgrid = b.jgrid || {};
    b.extend(b.jgrid, {
        version: "4.6.0",
        htmlDecode: function (b) {
            return b && ("&nbsp;" === b || "&#160;" === b || 1 === b.length && 160 === b.charCodeAt(0)) ? "" : b ? String(b).replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&quot;/g, '"').replace(/&amp;/g, "&") : b
        },
        htmlEncode: function (b) {
            return b ? String(b).replace(/&/g, "&amp;").replace(/\"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : b
        },
        format: function (e) {
            var f = b.makeArray(arguments).slice(1);
            null == e && (e = "");
            return e.replace(/\{(\d+)\}/g,
            function (b, d) {
                return f[d]
            })
        },
        msie: "Microsoft Internet Explorer" === navigator.appName,
        msiever: function () {
            var b = -1;
            null != /MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent) && (b = parseFloat(RegExp.$1));
            return b
        },
        getCellIndex: function (e) {
            e = b(e);
            if (e.is("tr")) return -1;
            e = (e.is("td") || e.is("th") ? e : e.closest("td,th"))[0];
            return b.jgrid.msie ? b.inArray(e, e.parentNode.cells) : e.cellIndex
        },
        stripHtml: function (b) {
            b = String(b);
            var f = /<("[^"]*"|'[^']*'|[^'">])*>/gi;
            return b ? (b = b.replace(f, "")) && "&nbsp;" !== b && "&#160;" !== b ? b.replace(/\"/g, "'") : "" : b
        },
        stripPref: function (e, f) {
            var c = b.type(e);
            if ("string" === c || "number" === c) e = String(e),
            f = "" !== e ? String(f).replace(String(e), "") : f;
            return f
        },
        parse: function (e) {
            "while(1);" === e.substr(0, 9) && (e = e.substr(9));
            "/*" === e.substr(0, 2) && (e = e.substr(2, e.length - 4));
            e || (e = "{}");
            return !0 === b.jgrid.useJSON && "object" === typeof JSON && "function" === typeof JSON.parse ? JSON.parse(e) : eval("(" + e + ")")
        },
        parseDate: function (e, f, c, d) {
            var a = /^\/Date\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\)\/$/,
            l = "string" === typeof f ? f.match(a) : null,
            a = function (a, b) {
                a = String(a);
                for (b = parseInt(b, 10) || 2; a.length < b;) a = "0" + a;
                return a
            },
            g = {
                m: 1,
                d: 1,
                y: 1970,
                h: 0,
后面还有 4344+ 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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