Ajax

English [ˈeɪˌdʒæks] American [ˈeˌdʒæks]

n. The full name is "Asynchronous JavaScript and XML" (asynchronous JavaScript and XML); refers to a A web development technology for creating interactive web applications. ;Ajax copper-tin-lead bearing alloy, Agnes explosive

errors

n. Error (plural form of error); fault, mistake

ajax ajaxError() method syntax

Function:ajaxError() method executes the function when an error occurs in the AJAX request. It is an Ajax event.

Syntax:.ajaxError(function(event,xhr,options,exc))

Parameters:

Parameters Description
function(event,xhr,options,exc) Required. Specifies a function to run when a request fails. Additional parameters: event - Contains the event object xhr - Contains the XMLHttpRequest object options - Contains the options used in the AJAX request exc - Contains the JavaScript exception.

Description:The XMLHttpRequest object and settings are passed as parameters to the callback function. The caught error can be passed as the last parameter: function (event, XMLHttpRequest, ajaxOptions, thrownError) {// thrownError will only be passed when an exception occurs this;}

ajax ajaxError() method example

    

通过 AJAX 改变文本

Run instance »

Click the "Run instance" button to view the online instance