jquery, how to run a function as soon as another function ends

前端 未结 6 1831
梦谈多话
梦谈多话 2021-01-12 18:58

*Note: Re-writing question:

I am trying to write the following outside of the individual function calls:

example:

function f1(){
         


        
6条回答
  •  臣服心动
    2021-01-12 19:13

    instead of

     firstFunction(function(){
            secondFunction();
        });
    

    write

    firstFunction();
    secondFunction();
    

提交回复
热议问题