$.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

相关文章:

  • 2022-03-06
  • 2021-06-19
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2021-06-06
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案