Jquery Chaining vs Callbacks

后端 未结 2 1361
野的像风
野的像风 2020-12-15 00:51

For jQuery, what\'s the difference in the outcome of the following two snippets. Anything? Am I correct that the callback and the second item in the chain are both executed

2条回答
  •  长情又很酷
    2020-12-15 01:08

    The only difference is timing: The callback in the second example will not be executed until the first animate completes. The chained animate in the first example will happen immediately after the first animation begins.

提交回复
热议问题