jQuery 1.0.4 - New Wave Javascript(js源文件)

2019-06-03 09:49:42刘景俊

                            if (p == "opacity")
                                jQuery.attr(y, p, z.el.orig[p]);
                            else
                                y[p] = '';
                }

                // If a callback was provided, execute it
                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 );