jQuery Deferred and Promise for sequential execution of synchronous and asynchronous functions

后端 未结 3 716
名媛妹妹
名媛妹妹 2020-12-14 21:19

If I want to have synchronous and asynchronous functions execute in a particular order I could use jQuery promise but it doesn\'t seem to work the way I\'d expect it to work

3条回答
  •  孤城傲影
    2020-12-14 21:48

    jQuery < 1.8 is fine WRT chaining, you just use .pipe instead of .then. 1.8 simply changed .then to be .pipe.

提交回复
热议问题