jQuery 1.0.2

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

                    jQuery.attr(
                        type ? this.style : this,
                        key, value
                    );
            }) :
            // Look for the case where we’re accessing a style value
            jQuery[ type || “attr” ]( this[0], key );
    },
    css: function( key, value ) {
        return this.attr( key, value, “curCSS” );
    },
    text: function(e) {
        e = e || this;
        var t = “”;
        for ( var j = 0; j < e.length; j++ ) {
            var r = e[j].childNodes;
            for ( var i = 0; i < r.length; i++ )
                if ( r[i].nodeType != 8 )
                    t += r[i].nodeType != 1 ?
                        r[i].nodeValue : jQuery.fn.text([ r[i] ]);
        }
        return t;
    },
    wrap: function() {
        // The elements to wrap the target around
        var a = jQuery.clean(arguments);
        // Wrap each of the matched elements individually