jQuery 1.0.4 New Wave Javascript(js源文件)

2020-05-19 07:32:46易采站长站整理

        a = 0;
    }
    var prop;
    while (prop = arguments[a++])
        // Extend the base object
        for ( var i in prop ) target[i] = prop[i];
    // Return the modified object
    return target;
};
jQuery.extend({
    init: function(){
        jQuery.initDone = true;
        jQuery.each( jQuery.macros.axis, function(i,n){
            jQuery.fn[ i ] = function(a) {
                var ret = jQuery.map(this,n);
                if ( a && typeof a == “string” )
                    ret = jQuery.filter(a,ret).r;
                return this.pushStack( ret, arguments );
            };
        });
        jQuery.each( jQuery.macros.to, function(i,n){
            jQuery.fn[ i ] = function(){
                var a = arguments;
                return this.each(function(){
                    for ( var j = 0; j < a.length; j++ )
                        jQuery(a[j])[n]( this );
                });
            };
        });
        jQuery.each( jQuery.macros.each, function(i,n){
            jQuery.fn[ i ] = function() {