jQuery 1.0.2

2020-05-23 06:10:44易采站长站整理

    end: function() {
        return this.get( this.stack.pop() );
    },
    find: function(t) {
        return this.pushStack( jQuery.map( this, function(a){
            return jQuery.find(t,a);
        }), arguments );
    },
    clone: function(deep) {
        return this.pushStack( jQuery.map( this, function(a){
            return a.cloneNode( deep != undefined ? deep : true );
        }), arguments );
    },
    filter: function(t) {
        return this.pushStack(
            t.constructor == Array &&
            jQuery.map(this,function(a){
                for ( var i = 0; i < t.length; i++ )
                    if ( jQuery.filter(t[i],[a]).r.length )
                        return a;
            }) ||
            t.constructor == Boolean &&
            ( t ? this.get() : [] ) ||
            typeof t == “function” &&
            jQuery.grep( this, t ) ||
            jQuery.filter(t,this).r, arguments );
    },
    not: function(t) {
        return this.pushStack( t.constructor == String ?
            jQuery.filter(t,this,false).r :
            jQuery.grep(this,function(a){ return a != t; }), arguments );