Set a delay in ajax call

后端 未结 4 1689
借酒劲吻你
借酒劲吻你 2021-01-06 02:12

I am trying to add a small delay (2 sec) between the loader icon and the success with the data as html.

What I have tried to use is the setTimeout and put in a delay

4条回答
  •  生来不讨喜
    2021-01-06 02:55

    Use setTimeout() like this:

    
    

提交回复
热议问题