Implement a loading indicator for a jQuery AJAX call

前端 未结 6 1400
我在风中等你
我在风中等你 2020-12-04 05:54

I have a Bootstrap modal which is launched from a link. For about 3 seconds it just sits there blank, while the AJAX query fetches the data from the database. How can I impl

6条回答
  •  情话喂你
    2020-12-04 06:03

    There is a global configuration using jQuery. This code runs on every global ajax request.

    
    
    
    

    Here is a demo: http://jsfiddle.net/sd01fdcm/

提交回复
热议问题