你们是用什么方案计算的
ajax接口中的回调函数耗时怎么计算的
18200686816
#4
普通的计算方式是如下这样
$.ajax({
success: function(){
var s = (new Date).getTime();
//
…response code
//
console.log( (new Date).getTime() - s)
}
})
如果不注入代码的该怎么计算这个时间