jQuery 1.0.2

2019-06-03 18:50:05于海丽

                eval("f = function(a,i){" +
                    ( m[1] == "@" ? "z=jQuery.attr(a,m[3]);" : "" ) +
                    "return " + f + "}");

                // Execute it against the current filter
                r = g( r, f );
            }
        }

        // Return an array of filtered elements (r)
        // and the modified expression string (t)
        return { r: r, t: t };
    },
    trim: function(t){
        return t.replace(/^s+|s+$/g, "");
    },
    parents: function( elem ){
        var matched = [];
        var cur = elem.parentNode;
        while ( cur && cur != document ) {
            matched.push( cur );
            cur = cur.parentNode;
        }
        return matched;
    },
    sibling: function(elem, pos, not) {
        var elems = [];

        if(elem) {
            var siblings = elem.parentNode.childNodes;
            for ( var i = 0; i < siblings.length; i++ ) {
                if ( not === true && siblings[i] == elem ) continue;

                if ( siblings[i].nodeType == 1 )