Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
完成加载前的ajax指示器_Ajax_Loading - Fatal编程技术网

完成加载前的ajax指示器

完成加载前的ajax指示器,ajax,loading,Ajax,Loading,在加载网站布局中的所有图像之前,如何显示ajax指示器 提前感谢。使用JQuery。求你了 $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).addClass('ohmy').hide('slow'); });

在加载网站布局中的所有图像之前,如何显示ajax指示器

提前感谢。

使用JQuery。求你了

    $("#loading").ajaxStart(function() {
        $(this).show();
    });
    $("#loading").ajaxStop(function() {
        $(this).addClass('ohmy').hide('slow');
    });