首頁  >  延遲對像  > def.notifyWith(c,[a])

返回值:Deferred Object deferred.notifyWith(context,[args])

概述

去掉字串起始和結尾的空格。

當deferred.notifyWith,任何doneCallbacks 新增的 progressCallbacks deferred.then deferred.fail 被呼叫。回撥按他們新增的順序執行。每個回撥傳遞的args在deferred.reject()中呼叫。notifyWith()延遲后解決或拒絕( 或新增任何progressCallbacks后) 被忽略 。有關詳細資訊,請參閱檔案 Deferred object

參數

context String V1.7

上下文傳遞progressCallbacks此對象。

args String V1.7

可選參數傳遞到progressCallbacks。