jQuery 1.0.2

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

                });
            } else
                callback.apply( self, [res.responseText, status] );

        }, ifModified);

        return this;
    },
    serialize: function() {
        return jQuery.param( this );
    }

});

// If IE is used, create a wrapper for the XMLHttpRequest object
if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
    XMLHttpRequest = function(){
        return new ActiveXObject(
            navigator.userAgent.indexOf("MSIE 5") >= 0 ?
            "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"
        );
    };

// Attach a bunch of functions for handling common AJAX events

 

new function(){
    var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(",");

    for ( var i = 0; i < e.length; i++ ) new function(){
        var o = e[i];
        jQuery.fn[o] = function(f){
            return this.bind(o, f);
        };
    };
};

jQuery.extend({
    get: function( url, data, callback, type, ifModified ) {
        if ( data.constructor == Function ) {
            type = callback;
            callback = data;
            data = null;
        }

        // append ? + data or & + data, in case there are already params