js判断所有异步ajax请求调用完毕

时间:2014-08-27 20:26:08   收藏:0   阅读:1019
$(function() {
  $(document).ajaxStop(function() {
    $(this).unbind("ajaxStop"); //prevent running again when other calls finish
    LoadContact();
  });
  LoadCategories($(‘#Category‘));
  LoadPositions($(‘#Position‘));
  LoadDepartments($(‘#Department‘));
});

 

原文:http://www.cnblogs.com/fcq121/p/3940174.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!