Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种方法可以在发送请求和接收答案之间获得时间,还是我需要手动完成?
框架:Vanilla JS
问候, 马特
抱歉不行。
您必须手动完成。这是示例代码和文章。
而且技术是
var duration = (endTime - startTime)/1000;
这是一个工作小提琴