jquery - using .done() successively is giving the same results as .then() / .done()

后端 未结 2 1818
伪装坚强ぢ
伪装坚强ぢ 2021-01-25 13:37

Edit - please see notes at the bottom on why I don\'t believe this is a duplicate question

Using jquery 3.2.1 and Bootstrap 3.3.7

Part of my application

2条回答
  •  时光取名叫无心
    2021-01-25 14:08

    This question is duplicate. jquery-deferreds-and-promises-then-vs-done

    In short:

    promise.then( doneCallback, failCallback )
    // was equivalent to
    promise.done( doneCallback ).fail( failCallback )
    

提交回复
热议问题