jquery wait for multiple complete events

后端 未结 5 1633
无人及你
无人及你 2020-12-16 01:23

I want to use jQuery\'s load function to load some content into a div, and I want to also call jQuery\'s animate function.

$(\'#div         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 02:04

    Use:

    $('#div1').queue(function(){ /* do stuff */ });
    

    This way you can queue functions to execute one after the other.

提交回复
热议问题