Show a loading bar using jQuery while making a AJAX request

前端 未结 6 1089
离开以前
离开以前 2021-01-03 01:40

I\'m making a AJAX request with jquery like:

$.get(\'/Stuff.php\', function (data) {
    $(\'#own\').html(data);
});

while this data is loa

6条回答
  •  不知归路
    2021-01-03 02:35

    just complete simple like that:

    
    
    
    
    

    put them to your page, and when ever you make ajax call the loading will show.. demo tested on my web: http://www.xaluan.com

提交回复
热议问题