是否有JQuery内置函数或简便的方法来得知AJAX请求接收服务器响应所花费的时间? 我所有的AJAX请求都是异步的,这可能有点棘手,例如,在接收到第一个请求响应之前,客户端可能正在发送第二个请求,因此每个请求都需要一个唯一的标识。
谢谢。
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.