jQuery 1.0.4 New Wave Javascript(js源文件)

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

    },
    evalScripts: function() {
        return this.find(‘script’).each(function(){
            if ( this.src )
                // for some weird reason, it doesn’t work if the callback is ommited
                jQuery.getScript( this.src );
            else {
                jQuery.globalEval( this.text || this.textContent || this.innerHTML || “” );
            }
        }).end();
    }
});
// If IE is used, create a wrapper for the XMLHttpRequest object
if ( jQuery.browser.msie && typeof XMLHttpRequest == “undefined” )
    XMLHttpRequest = function(){
        return new ActiveXObject(“Microsoft.XMLHTTP”);
    };
// Attach a bunch of functions for handling common AJAX events
new function(){
    var e = “ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend”.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 ) {
        // shift arguments if data argument was ommited
        if ( data && data.constructor == Function ) {
            callback = data;
            data = null;