from.. 2016-04-08 04:41 采纳率: 50%
浏览 45

Ajax超时的原因

Am getting timeout exception in ajax often eventhough my server is running and network is available. Help me in solving this..

My code looks like

J.ajax({
    type        : "POST",//no i18n
    dataType    : 'json',//No I18N
    global      : false,
    timeout     : 15000, 
    url         : "test.do",
    data        : {},
    error       : function(){},
    success     : function(){}
});
  • 写回答

1条回答 默认 最新

  • weixin_33743703 2016-04-08 04:42
    关注

    Does your server-side file contain a loop that is not being terminated? That might be your problem.

    评论

报告相同问题?