jQuery ajax, wait until beforeSend animation finishes

前端 未结 3 1357
再見小時候
再見小時候 2021-01-03 06:08

HTML & CSS:

link


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 06:20

    The thing is that "beforeSend" is finished - it will exit long before that "fadeIn" finishes. I don't know what you're trying to accomplish so it's hard to offer a solution. You'd have to wait to start the ajax operation until after the animation sequence (the "fadeIn") completes if you wanted to guarantee that to happen first.

提交回复
热议问题