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

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

                    // 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)
                    var data = jQuery.httpData( xml, s.dataType );

                    // If a local callback was specified, fire it and pass it the data
                    if ( s.success )
                        s.success( data, status );

                    // Fire the global callback
                    if( s.global )
                        jQuery.event.trigger( "ajaxSuccess", [xml, s] );

                // Otherwise, the request was not successful