开发者

JQuery AJAX Request/Response

Is there a JQuery built-in function or an easy way to get the time an AJAX request has taken to receive a server respon开发者_开发知识库se? it might be a bit tricky that all my AJAX requests are asynchronous, for example there could be a second request sent by the client under way before receiving a first request response therefore a unique identification for each request is needed.

Thanks.


You can use Firebug on firefox or the Inspector in Chrome


Try jQuery.ajaxStart() and jQuery.ajaxComplete() functions to record the time to get response from server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜