JQuery

Delayed object-deferred.reject(args)

Delayed object-deferred.reject(args), someone asked me to explain?

Overview

Reject the lingering object and call any failed callback function based on the given argument.

When the delay is denied, any deferred.then or deferred.fail added by failCallbacks is called. Callbacks are executed in the order they were added. The args passed by each callback are called in deferred.reject(). After adding any failCallbacks deferred to the denied state, the addition is performed immediately, and the parameters used are passed to the .reject() call. See the file Deferred object for details .

parameter

args v1.5

Optional argument passed to failCallbacks.

Post your comments / questions