jQuery 1.0.2

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

                if( done && z.o.complete && z.o.complete.constructor == Function )
                    // Execute the complete function
                    z.o.complete.apply( z.el );
            } else {
                // Figure out where in the animation we are and set the number
                var p = (t - this.startTime) / z.o.duration;
                z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum;

                // Perform the next step of the animation
                z.a();
            }
        };

    }

});
jQuery.fn.extend({
    loadIfModified: function( url, params, callback ) {
        this.load( url, params, callback, 1 );
    },
    load: function( url, params, callback, ifModified ) {
        if ( url.constructor == Function )
            return this.bind("load", url);

        callback = callback || function(){};

        // Default to a GET request
        var type = "GET";

        // If the second parameter was provided
        if ( params ) {
            // If it's a function
            if ( params.constructor == Function ) {