jQuery 1.0.4 New Wave Javascript(js源文件)

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

                    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
                } else {
                    // If a local callback was specified, fire it
                    if ( s.error ) s.error( xml, status );
                    // Fire the global callback
                    if( s.global )
                        jQuery.event.trigger( “ajaxError”, [xml, s] );
                }
                // The request was completed
                if( s.global )
                    jQuery.event.trigger( “ajaxComplete”, [xml, s] );