Class: AjaxResult

AjaxResult(deferred, sourceElementopt)

new AjaxResult(deferred, sourceElementopt)

Ajax结果
Parameters:
Name Type Attributes Description
deferred jQuery.Deferred
sourceElement Document | Element <optional>
Source:

Methods

doHandleResult(doneFn, failFn, showMask) → {AjaxResult}

处理调用结果
Parameters:
Name Type Description
doneFn function
failFn function
showMask boolean
Source:
Returns:
Type
AjaxResult

thenResult(doneFn, failFn) → {AjaxResult}

处理调用结果
Parameters:
Name Type Description
doneFn function
failFn function
Source:
Returns:
Type
AjaxResult

waitResult(doneFn, failFn) → {AjaxResult}

处理调用结果
Parameters:
Name Type Description
doneFn function
failFn function
Source:
Returns:
Type
AjaxResult

(static) handleAjaxError(sourceElement, jqXHR, textStatus, errorThrown)

处理 AJAX 错误
Parameters:
Name Type Description
sourceElement Document | Element
jqXHR jQuery.jqXHR
textStatus string
errorThrown string
Source: