jQuery 1.0.4 New Wave Javascript(js源文件)

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

        var onreadystatechange = function(isTimeout){
            // The transfer is complete and the data is available, or the request timed out
            if ( xml && (xml.readyState == 4 || isTimeout == “timeout”) ) {
                requestDone = true;
                var status = jQuery.httpSuccess( xml ) && isTimeout != “timeout” ?
                    s.ifModified && jQuery.httpNotModified( xml, s.url ) ? “notmodified” : “success” : “error”;
                // Make sure that the request was successful or notmodified
                if ( status != “error” ) {
                    // Cache Last-Modified header, if ifModified mode.
                    var modRes;
                    try {
                        modRes = xml.getResponseHeader(“Last-Modified”);
                    } catch(e) {} // swallow exception thrown by FF if header is not available
                    if ( s.ifModified && modRes )
                        jQuery.lastModified[s.url] = modRes;
                    // process the data (runs the xml through httpData regardless of callback)