$.ajax({
   url:'fghjkld',
   type:'POST',
   data:{},    
   timeout:'3000',
   success:function(data){},
   error:function(jqXHR, textStatus, errorThrown){
          if(textStatus == 'timeout'){
              alert('超时事件!');
        } 
    }
})    

  

http://stackoverflow.com/questions/5225597/set-timeout-for-ajax-jquery

相关文章:

  • 2021-11-06
  • 2021-10-15
  • 2021-09-14
  • 2019-03-17
  • 2021-07-10
  • 2021-12-04
  • 2021-10-13
  • 2019-10-31
猜你喜欢
  • 2021-10-09
  • 2021-11-23
  • 2021-09-27
  • 2021-11-05
  • 2021-09-11
  • 2021-09-11
  • 2021-11-05
  • 2021-08-26
相关资源
相似解决方案